summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2017-09-21 08:18:59 +0000
committerGabor Horvath <xazax.hun@gmail.com>2017-09-21 08:18:59 +0000
commit5536a01ad24973c93fd39f227e814f98f8bf86d7 (patch)
tree1f4cb0fea2a035fc88b82e2679aa8a828e156110 /clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
parent1390af2dd2a0950cb0a7374602985a4d0792a63b (diff)
downloadbcm5719-llvm-5536a01ad24973c93fd39f227e814f98f8bf86d7.tar.gz
bcm5719-llvm-5536a01ad24973c93fd39f227e814f98f8bf86d7.zip
[analyzer] Fix an assertion fail in VirtualCallChecker
Differential Revision: https://reviews.llvm.org/D37978 llvm-svn: 313866
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
index ea1976e0202..c5010f53785 100644
--- a/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
+++ b/clang/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<FinalAttr>())
CallIsNonVirtual = true;
OpenPOWER on IntegriCloud