aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-12-04 06:36:49 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-12-04 06:36:49 +0000
commit1d60710c593c82e6c4a9a5c1e96e24fbb3a61592 (patch)
tree03a61971af1bdfbe938d7ef0fd222afd1e9cff15
parent47846d2b4c19972e57563bb05a777748939bfb47 (diff)
the assertion says state is not NULL. When state is not NULL, getState()
returns state. So simplify the predicate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90546 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Analysis/PathSensitive/Checker.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clang/Analysis/PathSensitive/Checker.h b/include/clang/Analysis/PathSensitive/Checker.h
index b380f1bf02..3238672e51 100644
--- a/include/clang/Analysis/PathSensitive/Checker.h
+++ b/include/clang/Analysis/PathSensitive/Checker.h
@@ -126,8 +126,7 @@ public:
void addTransition(const GRState *state) {
assert(state);
- if (state != getState() ||
- (state && state != B.GetState(Pred)))
+ if (state != B.GetState(Pred))
GenerateNode(state, true);
else
Dst.Add(Pred);