projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4246b75
)
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)
llvm-svn: 361411
clang/lib/CodeGen/CGDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDebugInfo.cpp
b/clang/lib/CodeGen/CGDebugInfo.cpp
index
fec092a
..
89c053f
100644
(file)
--- a/
clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/
clang/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;
}