diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2019-05-22 17:45:24 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2019-05-22 17:45:24 +0000 |
| commit | b417513a506f2dfbe478fa499d75e6a625a361a5 (patch) | |
| tree | 1225c006958a297339c2a11b506804bf17aa1145 | |
| parent | 4246b75295795d49f3af157e622c774b945442f7 (diff) | |
| download | bcm5719-llvm-b417513a506f2dfbe478fa499d75e6a625a361a5.tar.gz bcm5719-llvm-b417513a506f2dfbe478fa499d75e6a625a361a5.zip | |
Fixed a -Wunused-variable warning when assertions are disabled
llvm-svn: 361411
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index fec092ad221..89c053f4b29 100644 --- 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; } |

