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)
llvm-svn: 301825

clang/lib/AST/ExprConstant.cpp

index 9ad14ab..5e6a629 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 {