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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361145
91177308-0d34-0410-b5e6-
96231b3b80d8
return D->getType();
}
- if (TypeInfoLValue TI = B.dyn_cast<TypeInfoLValue>())
+ if (B.is<TypeInfoLValue>())
return B.getTypeInfoType();
const Expr *Base = B.get<const Expr*>();