diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-08-15 17:33:37 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-08-15 17:33:37 +0000 |
commit | fc87350ce0b279c82b1c9d2647063f4acf48a978 (patch) | |
tree | a1b5833e9e94b745dedc19649b4a45fee09227cb /lib/StaticAnalyzer/Core/CallEvent.cpp | |
parent | 9f6441ad92c30028032eb3df6f4a7f2ebe393a68 (diff) |
[analyzer] Don't try to devirtualize if the class is incomplete.
A similar issue to the previous commit, introduced by r161915.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/CallEvent.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/CallEvent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/CallEvent.cpp b/lib/StaticAnalyzer/Core/CallEvent.cpp index c625f24e07..8481cd9c33 100644 --- a/lib/StaticAnalyzer/Core/CallEvent.cpp +++ b/lib/StaticAnalyzer/Core/CallEvent.cpp @@ -401,7 +401,7 @@ RuntimeDefinition CXXInstanceCall::getRuntimeDefinition() const { // Is the type a C++ class? (This is mostly a defensive check.) QualType RegionType = DynType.getType()->getPointeeType(); const CXXRecordDecl *RD = RegionType->getAsCXXRecordDecl(); - if (!RD) + if (!RD || !RD->hasDefinition()) return RuntimeDefinition(); // Find the decl for this method in that class. |