r301825 - Silence unused variable warning. NFC.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Mon May 1 13:00:23 PDT 2017


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 {




More information about the cfe-commits mailing list