From 56999699126081f9736cc356877601fee634d76d 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. llvm-svn: 301825 --- clang/lib/AST/ExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 9ad14abc1276..5e6a629c01b4 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/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 {