diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-09 05:15:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-09 05:15:50 +0000 |
commit | 89413fe2e82c83640cf235c42e14c6e0d3eb3c18 (patch) | |
tree | b51deb9643f4996d086207f514b694dc5da8aabc | |
parent | 7d39d742383ade80c9d937729bfc539c6c978845 (diff) |
Fixed crash where SetBlkExpr would attempt to query the liveness data when
we weren't processing a statement within a basic block.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48087 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Analysis/GRExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp index b31f5e539f..95f406b9e0 100644 --- a/Analysis/GRExprEngine.cpp +++ b/Analysis/GRExprEngine.cpp @@ -94,7 +94,7 @@ ValueState* GRExprEngine::SetRVal(ValueState* St, LVal LV, RVal RV) { ValueState* GRExprEngine::SetBlkExprRVal(ValueState* St, Expr* Ex, RVal V) { - if (!StateCleaned) { + if (CurrentStmt && !StateCleaned) { St = RemoveDeadBindings(CurrentStmt, St); StateCleaned = true; } |