diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-05-20 11:38:33 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-05-20 11:38:33 +0000 |
commit | 3b6b2e331fea16b375d12747f3030c6187e86c2c (patch) | |
tree | 27c3c45a44d45cd2763220b8a0a49bd0f68d0451 /clang/lib/AST/ExprConstant.cpp | |
parent | 7c7425483ae621c5f197e999c0b49a8cdd5c5ace (diff) | |
download | bcm5719-llvm-3b6b2e331fea16b375d12747f3030c6187e86c2c.tar.gz bcm5719-llvm-3b6b2e331fea16b375d12747f3030c6187e86c2c.zip |
Fix compilation warning about unused variable [NFC]
Without the fix at least clang 3.6 complains with
../tools/clang/lib/AST/ExprConstant.cpp:90:24: error: unused variable 'TI' [-Werror,-Wunused-variable]
if (TypeInfoLValue TI = B.dyn_cast<TypeInfoLValue>())
^
1 error generated.
llvm-svn: 361145
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 856efc82941..e654480f094 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -87,7 +87,7 @@ namespace { return D->getType(); } - if (TypeInfoLValue TI = B.dyn_cast<TypeInfoLValue>()) + if (B.is<TypeInfoLValue>()) return B.getTypeInfoType(); const Expr *Base = B.get<const Expr*>(); |