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
This commit is contained in:
Mikael Holmen 2019-05-20 11:38:33 +00:00
parent 7c7425483a
commit 3b6b2e331f
1 changed files with 1 additions and 1 deletions

View File

@ -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*>();