forked from OSchip/llvm-project
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:
parent
7c7425483a
commit
3b6b2e331f
|
@ -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*>();
|
||||
|
|
Loading…
Reference in New Issue