Roll otherwise-unused variable into assert

This commit is contained in:
David Blaikie 2020-11-09 23:27:47 -08:00
parent 6e0ad5bc8c
commit 724877e219
1 changed files with 1 additions and 2 deletions

View File

@ -5085,8 +5085,7 @@ void CXXNameMangler::mangleValueInTemplateArg(QualType T, const APValue &V) {
} }
case APValue::Union: { case APValue::Union: {
const CXXRecordDecl *RD = T->getAsCXXRecordDecl(); assert(T->getAsCXXRecordDecl() && "unexpected type for union value");
assert(RD && "unexpected type for union value");
const FieldDecl *FD = V.getUnionField(); const FieldDecl *FD = V.getUnionField();
if (!FD) { if (!FD) {