diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-01-28 22:27:59 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-01-28 22:27:59 +0000 |
| commit | 2e561dd4911b3d092f50a6cdcf5a89512249c8dd (patch) | |
| tree | 8458238774e62f0d3dd709efc02cd9db47dc3d6e /clang/lib/Analysis | |
| parent | f50e60b23a6178bb79ab3faa2e7992b29b1026c6 (diff) | |
| download | bcm5719-llvm-2e561dd4911b3d092f50a6cdcf5a89512249c8dd.tar.gz bcm5719-llvm-2e561dd4911b3d092f50a6cdcf5a89512249c8dd.zip | |
Remove method 'AddNE' from the public interface of ConstraintManager.
llvm-svn: 63249
Diffstat (limited to 'clang/lib/Analysis')
| -rw-r--r-- | clang/lib/Analysis/BasicConstraintManager.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/clang/lib/Analysis/BasicConstraintManager.cpp b/clang/lib/Analysis/BasicConstraintManager.cpp index 7496c5f5aac..f14ada7aed6 100644 --- a/clang/lib/Analysis/BasicConstraintManager.cpp +++ b/clang/lib/Analysis/BasicConstraintManager.cpp @@ -72,7 +72,7 @@ public: const SymIntConstraint& C, bool& isFeasible); const GRState* AssumeSymNE(const GRState* St, SymbolRef sym, - const llvm::APSInt& V, bool& isFeasible); + const llvm::APSInt& V, bool& isFeasible); const GRState* AssumeSymEQ(const GRState* St, SymbolRef sym, const llvm::APSInt& V, bool& isFeasible); diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 2d5cb5f5b89..6f1b1036b30 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -1678,8 +1678,11 @@ void CFRefCount::EvalSummary(ExplodedNodeSet<GRState>& Dst, #endif // FIXME: Add a flag to the checker where allocations are allowed to fail. - if (RE.getKind() == RetEffect::OwnedAllocatedSymbol) - state = state.AddNE(Sym, Eng.getBasicVals().getZeroWithPtrWidth()); + if (RE.getKind() == RetEffect::OwnedAllocatedSymbol) { + bool isFeasible; + state = state.Assume(loc::SymbolVal(Sym), true, isFeasible); + assert(isFeasible && "Cannot assume fresh symbol is non-null."); + } break; } |

