Fix unused var warning.

This commit is contained in:
Axel Naumann 2018-10-31 17:06:17 +01:00 committed by sftnight
parent c35914068e
commit 56186d6a2a

View File

@ -45,7 +45,7 @@ class PointerCheckInjector : public RecursiveASTVisitor<PointerCheckInjector> {
LookupResult* m_clingthrowIfInvalidPointerCache;
bool IsTransparentThis(Expr* E) {
if (auto TE = dyn_cast<CXXThisExpr>(E))
if (llvm::isa<CXXThisExpr>(E))
return true;
if (auto ICE = dyn_cast<ImplicitCastExpr>(E))
return IsTransparentThis(ICE->getSubExpr());