summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ProgramState.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-01-12 19:25:46 +0000
committerTed Kremenek <kremenek@apple.com>2012-01-12 19:25:46 +0000
commit3d3aea9374d745d76f9b448e42dec0d56d5f54ab (patch)
treee2d9cad52677e51da5e8bfa5357e6eb2bc243a6b /clang/lib/StaticAnalyzer/Core/ProgramState.cpp
parent9eae723c1800d6dec010c0fed7a929596cec21b5 (diff)
downloadbcm5719-llvm-3d3aea9374d745d76f9b448e42dec0d56d5f54ab.tar.gz
bcm5719-llvm-3d3aea9374d745d76f9b448e42dec0d56d5f54ab.zip
[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.
llvm-svn: 148036
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ProgramState.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ProgramState.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ProgramState.cpp b/clang/lib/StaticAnalyzer/Core/ProgramState.cpp
index 86a9ac03578..5eb0e06bca5 100644
--- a/clang/lib/StaticAnalyzer/Core/ProgramState.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud