]> granicus.if.org Git - clang/commitdiff
Fixed crash where SetBlkExpr would attempt to query the liveness data when
authorTed Kremenek <kremenek@apple.com>
Sun, 9 Mar 2008 05:15:50 +0000 (05:15 +0000)
committerTed Kremenek <kremenek@apple.com>
Sun, 9 Mar 2008 05:15:50 +0000 (05:15 +0000)
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

Analysis/GRExprEngine.cpp

index b31f5e539f4320b436b7f5191c5f53ac9c8b5fd6..95f406b9e0ad422d0c3d0168266a2292943775f9 100644 (file)
@@ -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;
   }