diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-01-12 19:25:46 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-01-12 19:25:46 +0000 |
commit | 0849ade4bb3e90c2fc0ce01ccd330f76f91da732 (patch) | |
tree | 91f02c0c67e692962dcb1b9c2f1897f9ecb3d7c6 /lib/StaticAnalyzer/Core/ProgramState.cpp | |
parent | ec789163a42a7be654ac34aadb750b508954d53c (diff) |
[analyzer] fix inlining's handling of mapping actual to formal arguments and limit the call stack depth. The analyzer can now accurately simulate factorial for limited depths.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ProgramState.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ProgramState.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/ProgramState.cpp b/lib/StaticAnalyzer/Core/ProgramState.cpp index 86a9ac0357..5eb0e06bca 100644 --- a/lib/StaticAnalyzer/Core/ProgramState.cpp +++ b/lib/StaticAnalyzer/Core/ProgramState.cpp @@ -180,9 +180,11 @@ const ProgramState *ProgramState::unbindLoc(Loc LV) const { return makeWithStore(newStore); } -const ProgramState *ProgramState::enterStackFrame(const StackFrameContext *frame) const { +const ProgramState * +ProgramState::enterStackFrame(const LocationContext *callerCtx, + const StackFrameContext *calleeCtx) const { const StoreRef &new_store = - getStateManager().StoreMgr->enterStackFrame(this, frame); + getStateManager().StoreMgr->enterStackFrame(this, callerCtx, calleeCtx); return makeWithStore(new_store); } |