Simplify interface to Store::AddDecl
llvm-svn: 55213
diff --git a/clang/lib/Analysis/GRState.cpp b/clang/lib/Analysis/GRState.cpp
index f925727..f1e0790 100644
--- a/clang/lib/Analysis/GRState.cpp
+++ b/clang/lib/Analysis/GRState.cpp
@@ -148,13 +148,14 @@
Store NewStore;
if (Ex)
- NewStore = StMgr->AddDecl(OldStore, BasicVals, SymMgr, VD, Ex,
+ NewStore = StMgr->AddDecl(OldStore, *this, VD, Ex,
GetRVal(St, Ex), Count);
else
- NewStore = StMgr->AddDecl(OldStore, BasicVals, SymMgr, VD, Ex);
+ NewStore = StMgr->AddDecl(OldStore, *this, VD, Ex);
if (NewStore == OldStore)
return St;
+
GRState NewSt = *St;
NewSt.St = NewStore;
return getPersistentState(NewSt);