]> granicus.if.org Git - clang/commitdiff
Silence unused variable warning. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 1 May 2017 20:00:23 +0000 (20:00 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 1 May 2017 20:00:23 +0000 (20:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301825 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 9ad14abc127608497939d182fde4667b7c221fd6..5e6a629c01b45df3b4d499a3e22a28795502a5c9 100644 (file)
@@ -3042,7 +3042,7 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
     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 {