Author: d0k Date: Mon May 1 15:00:23 2017 New Revision: 301825 URL: http://llvm.org/viewvc/llvm-project?rev=301825&view=rev Log: Silence unused variable warning. NFC.
Modified: cfe/trunk/lib/AST/ExprConstant.cpp Modified: cfe/trunk/lib/AST/ExprConstant.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=301825&r1=301824&r2=301825&view=diff ============================================================================== --- cfe/trunk/lib/AST/ExprConstant.cpp (original) +++ cfe/trunk/lib/AST/ExprConstant.cpp Mon May 1 15:00:23 2017 @@ -3042,7 +3042,7 @@ static CompleteObject findCompleteObject if (Info.Ctx.getAsIncompleteArrayType(BaseType)) { QualType MostRecentType = cast<ValueDecl const>(D->getMostRecentDecl())->getType(); - if (auto CAT = Info.Ctx.getAsConstantArrayType(MostRecentType)) + if (Info.Ctx.getAsConstantArrayType(MostRecentType)) BaseType = MostRecentType; } } else { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits