diff --git a/lib/Interpreter/NullDerefProtectionTransformer.cpp b/lib/Interpreter/NullDerefProtectionTransformer.cpp index 4aa00ae6..15efcf70 100644 --- a/lib/Interpreter/NullDerefProtectionTransformer.cpp +++ b/lib/Interpreter/NullDerefProtectionTransformer.cpp @@ -45,7 +45,7 @@ class PointerCheckInjector : public RecursiveASTVisitor { LookupResult* m_clingthrowIfInvalidPointerCache; bool IsTransparentThis(Expr* E) { - if (auto TE = dyn_cast(E)) + if (llvm::isa(E)) return true; if (auto ICE = dyn_cast(E)) return IsTransparentThis(ICE->getSubExpr());