Silence unused variable warning. NFC.

llvm-svn: 301825
This commit is contained in:
Benjamin Kramer 2017-05-01 20:00:23 +00:00
parent 4a27c79a95
commit 5699969912
1 changed files with 1 additions and 1 deletions

View File

@ -3042,7 +3042,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
if (Info.Ctx.getAsIncompleteArrayType(BaseType)) { if (Info.Ctx.getAsIncompleteArrayType(BaseType)) {
QualType MostRecentType = QualType MostRecentType =
cast<ValueDecl const>(D->getMostRecentDecl())->getType(); cast<ValueDecl const>(D->getMostRecentDecl())->getType();
if (auto CAT = Info.Ctx.getAsConstantArrayType(MostRecentType)) if (Info.Ctx.getAsConstantArrayType(MostRecentType))
BaseType = MostRecentType; BaseType = MostRecentType;
} }
} else { } else {