Fixed a -Wunused-variable warning when assertions are disabled
llvm-svn: 361411
This commit is contained in:
parent
4246b75295
commit
b417513a50
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue