projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2e7f17
)
Fixed a -Wunused-variable warning when assertions are disabled
author
Dmitri Gribenko
<gribozavr@gmail.com>
Wed, 22 May 2019 17:45:24 +0000
(17:45 +0000)
committer
Dmitri Gribenko
<gribozavr@gmail.com>
Wed, 22 May 2019 17:45:24 +0000
(17:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361411
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/CGDebugInfo.cpp
b/lib/CodeGen/CGDebugInfo.cpp
index fec092ad22149162c65a95d65042cf298aec69a2..89c053f4b2905dc01d2f404ab9c97b5076c72294 100644
(file)
--- a/
lib/CodeGen/CGDebugInfo.cpp
+++ b/
lib/CodeGen/CGDebugInfo.cpp
@@
-4357,6
+4357,7
@@
void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD, const APValue &Init) {
if (const auto *ECD = dyn_cast<EnumConstantDecl>(VD)) {
const auto *ED = cast<EnumDecl>(ECD->getDeclContext());
assert(isa<EnumType>(ED->getTypeForDecl()) && "Enum without EnumType?");
+ (void)ED;
return;
}