diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-07-10 22:07:47 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-07-10 22:07:47 +0000 |
commit | 8d276d38c258dfc572586daf6c0e8f8fce249c0e (patch) | |
tree | c5ffcaa1e40a295abc7237e73da48bd0888b1377 /lib/StaticAnalyzer/Core/Calls.cpp | |
parent | 28038f33aa2db4833881fea757a1f0daf85ac02b (diff) |
[analyzer] Add a CXXDestructorCall CallEvent.
While this work is still fairly tentative (destructors are still left out of
the CFG by default), we now handle destructors in the same way as any other
calls, instead of just automatically trying to inline them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/Calls.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/Calls.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Core/Calls.cpp b/lib/StaticAnalyzer/Core/Calls.cpp index 7b86d44276..8ea1336bb7 100644 --- a/lib/StaticAnalyzer/Core/Calls.cpp +++ b/lib/StaticAnalyzer/Core/Calls.cpp @@ -372,6 +372,12 @@ void CXXConstructorCall::addExtraInvalidatedRegions(RegionList &Regions) const { } +void CXXDestructorCall::addExtraInvalidatedRegions(RegionList &Regions) const { + if (Target) + Regions.push_back(Target); +} + + CallEvent::param_iterator ObjCMethodCall::param_begin() const { const ObjCMethodDecl *D = getDecl(); if (!D) |