summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-10-25 19:57:06 +0000
committerAnna Zaks <ganna@apple.com>2011-10-25 19:57:06 +0000
commitb473816b4a067514385281be17ba7a1e1c84a483 (patch)
tree6f87b9e202b17132400fbdb8174dad93e4263986 /clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp
parent513921dc8a1e542ecc0b2cf787cdac2dec8f4077 (diff)
downloadbcm5719-llvm-b473816b4a067514385281be17ba7a1e1c84a483.tar.gz
bcm5719-llvm-b473816b4a067514385281be17ba7a1e1c84a483.zip
[analyzer] Simplify CheckerContext
Remove dead members/parameters: ProgramState, respondsToCallback, autoTransition. Remove addTransition method since it's the same as generateNode. Maybe we should rename generateNode to genTransition (since a transition is always automatically generated)? llvm-svn: 142946
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp
index 3c9238190da..769a93e1619 100644
--- a/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp
@@ -94,7 +94,7 @@ void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const {
// Once encouter a chroot(), set the enum value ROOT_CHANGED directly in
// the GDM.
state = Mgr.addGDM(state, ChrootChecker::getTag(), (void*) ROOT_CHANGED);
- C.addTransition(state);
+ C.generateNode(state);
}
void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) const {
@@ -120,7 +120,7 @@ void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) const {
}
}
- C.addTransition(state);
+ C.generateNode(state);
}
// Check the jail state before any function call except chroot and chdir().
OpenPOWER on IntegriCloud