From: Benjamin Kramer Date: Mon, 1 May 2017 20:00:23 +0000 (+0000) Subject: Silence unused variable warning. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d6d690dae23eba38fea5a8aa5cd8a5a103432a7;p=clang Silence unused variable warning. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301825 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 9ad14abc12..5e6a629c01 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -3042,7 +3042,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E, if (Info.Ctx.getAsIncompleteArrayType(BaseType)) { QualType MostRecentType = cast(D->getMostRecentDecl())->getType(); - if (auto CAT = Info.Ctx.getAsConstantArrayType(MostRecentType)) + if (Info.Ctx.getAsConstantArrayType(MostRecentType)) BaseType = MostRecentType; } } else {