diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-03 21:55:56 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-03 21:55:56 +0000 |
commit | 1e9775d36de8edbc665c0f0bf4dae1400e3d2112 (patch) | |
tree | 959cadd704002dc0d44945ac7b8514af59c8883d /lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp | |
parent | 9c81bc2763dc37f78f357be339a6376402aad537 (diff) |
[analyzer] In UndefBranchChecker, use a node generator which does not create an edge/branching. (ExprEngine should be in charge of generating edges. The checkers should examine the condition and generate PostCondition node if needed.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp b/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp index a7a4b5a11d..b860b34ff3 100644 --- a/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp @@ -61,7 +61,7 @@ void UndefBranchChecker::checkBranchCondition(const Stmt *Condition, const ProgramState *state = Builder.getState(); SVal X = state->getSVal(Condition); if (X.isUndef()) { - ExplodedNode *N = Builder.generateNode(state, true); + ExplodedNode *N = Builder.generateNode(Condition, state); if (N) { N->markAsSink(); if (!BT) |