diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-05-01 20:00:23 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-05-01 20:00:23 +0000 |
commit | 5d6d690dae23eba38fea5a8aa5cd8a5a103432a7 (patch) | |
tree | e157f0d4d1b606d1ddaea311a18e402d60970869 /lib/AST/ExprConstant.cpp | |
parent | a6fd4ede6b78f48c9d10e14845d4217145ae1c28 (diff) |
Silence unused variable warning. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 9ad14abc12..5e6a629c01 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -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 { |