forked from OSchip/llvm-project
Roll otherwise-unused variable into assert
This commit is contained in:
parent
6e0ad5bc8c
commit
724877e219
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue