diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-04-09 16:46:55 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-04-09 16:46:55 +0000 |
| commit | f8cb51c20e48e5fb8d3b40238057b0249c3c4d27 (patch) | |
| tree | d28d52674d80493a3d8406d6eec0197ead33df25 /clang/lib | |
| parent | b041085c176a9fa4151a1d45639f24092c0219e3 (diff) | |
| download | bcm5719-llvm-f8cb51c20e48e5fb8d3b40238057b0249c3c4d27.tar.gz bcm5719-llvm-f8cb51c20e48e5fb8d3b40238057b0249c3c4d27.zip | |
Remove SVal::MakeZero and replace it with ValueManager::makeZeroVal.
llvm-svn: 68711
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 3 | ||||
| -rw-r--r-- | clang/lib/Analysis/SVals.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index 1c596bb2b49..2a43b9a89ea 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -122,6 +122,7 @@ GRExprEngine::GRExprEngine(CFG& cfg, Decl& CD, ASTContext& Ctx, Builder(NULL), StateMgr(G.getContext(), SMC, CMC, G.getAllocator(), cfg, CD, L), SymMgr(StateMgr.getSymbolManager()), + ValMgr(StateMgr.getValueManager()), CurrentStmt(NULL), NSExceptionII(NULL), NSExceptionInstanceRaiseSelectors(NULL), RaiseSel(GetNullarySelector("raise", G.getContext())), @@ -1742,7 +1743,7 @@ void GRExprEngine::VisitObjCMessageExprDispatchHelper(ObjCMessageExpr* ME, // it most likely isn't nil. We should assume the semantics // of this case unless we have *a lot* more knowledge. // - SVal V = SVal::MakeZero(getBasicVals(), ME->getType()); + SVal V = ValMgr.makeZeroVal(ME->getType()); MakeNode(Dst, ME, Pred, BindExpr(StNull, ME, V)); return; } diff --git a/clang/lib/Analysis/SVals.cpp b/clang/lib/Analysis/SVals.cpp index b78eea72c9f..8fdc37fe737 100644 --- a/clang/lib/Analysis/SVals.cpp +++ b/clang/lib/Analysis/SVals.cpp @@ -205,7 +205,7 @@ SVal loc::ConcreteInt::EvalBinOp(BasicValueFactory& BasicVals, // Utility methods for constructing SVals. //===----------------------------------------------------------------------===// -SVal SVal::MakeZero(BasicValueFactory &BasicVals, QualType T) { +SVal ValueManager::makeZeroVal(QualType T) { if (Loc::IsLocType(T)) return Loc::MakeNull(BasicVals); |

