From 289261b569f6ee357847882efa9605522b654e60 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Thu, 21 Sep 2017 08:18:59 +0000 Subject: [analyzer] Fix an assertion fail in VirtualCallChecker Differential Revision: https://reviews.llvm.org/D37978 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313866 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/StaticAnalyzer') diff --git a/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp b/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp index ea1976e020..c5010f5378 100644 --- a/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp @@ -146,7 +146,7 @@ static bool isVirtualCall(const CallExpr *CE) { if (CME->getQualifier()) CallIsNonVirtual = true; - if (const Expr *Base = CME->getBase()->IgnoreImpCasts()) { + if (const Expr *Base = CME->getBase()) { // The most derived class is marked final. if (Base->getBestDynamicClassType()->hasAttr()) CallIsNonVirtual = true; -- cgit v1.2.1