diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-10 23:44:06 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-10 23:44:06 +0000 |
commit | 940b1d85d3f786c90e845429a60ffd0be736984e (patch) | |
tree | a22c21f09abcbd78f51e817073233d3f666f0c27 /lib/Analysis/GRExprEngine.cpp | |
parent | 1d78cc443084134428c4c333fab25148900c3ca4 (diff) |
Fixed some logic errors in the CF ref count checker; we now can detect simple
use-after-release errors. Added test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 6d4217774d..3211da2918 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -678,6 +678,8 @@ void GRExprEngine::VisitCall(CallExpr* CE, NodeTy* Pred, unsigned size = Dst.size(); + SaveAndRestore<bool> OldSink(Builder->BuildSinks); + EvalCall(Dst, CE, cast<LVal>(L), *DI); if (!Builder->BuildSinks && Dst.size() == size) |