summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-10-18 23:06:16 +0000
committerAnna Zaks <ganna@apple.com>2011-10-18 23:06:16 +0000
commiteebbbc7253bed106fa7a607cac0d74ed5a7e5f2c (patch)
tree63daa7b7b3d9b2e8f396bc6ebbb0b4c6e8fd08cb /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
parent2e2eb49f7f0f89b36f73d0a345ef897a82d3bbcf (diff)
downloadbcm5719-llvm-eebbbc7253bed106fa7a607cac0d74ed5a7e5f2c.tar.gz
bcm5719-llvm-eebbbc7253bed106fa7a607cac0d74ed5a7e5f2c.zip
[analyzer] Pull Pred out of NodeBuilderContext.
Each builder will have a different one, so it doesn't make sense to keep it in the context. llvm-svn: 142447
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index cc170bc1e64..dba1ce10bd3 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -941,14 +941,15 @@ static SVal RecoverCastedSymbol(ProgramStateManager& StateMgr,
void ExprEngine::processBranch(const Stmt *Condition, const Stmt *Term,
NodeBuilderContext& BldCtx,
+ ExplodedNode *Pred,
const CFGBlock *DstT,
const CFGBlock *DstF) {
- BranchNodeBuilder builder(BldCtx, DstT, DstF);
+ BranchNodeBuilder builder(BldCtx, Pred, DstT, DstF);
// Check for NULL conditions; e.g. "for(;;)"
if (!Condition) {
- BranchNodeBuilder NullCondBldr(BldCtx, DstT, DstF);
+ BranchNodeBuilder NullCondBldr(BldCtx, Pred, DstT, DstF);
NullCondBldr.markInfeasible(false);
Engine.enqueue(NullCondBldr);
return;
OpenPOWER on IntegriCloud