From 5d6d690dae23eba38fea5a8aa5cd8a5a103432a7 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 1 May 2017 20:00:23 +0000 Subject: [PATCH] Silence unused variable warning. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301825 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.40.0