Fixed a -Wunused-variable warning when assertions are disabled

llvm-svn: 361411
This commit is contained in:
Dmitri Gribenko 2019-05-22 17:45:24 +00:00
parent 4246b75295
commit b417513a50
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}