[cfe-commits] r48087 - /cfe/trunk/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Sat Mar 8 21:15:50 PST 2008


Author: kremenek
Date: Sat Mar  8 23:15:50 2008
New Revision: 48087

URL: http://llvm.org/viewvc/llvm-project?rev=48087&view=rev
Log:
Fixed crash where SetBlkExpr would attempt to query the liveness data when
we weren't processing a statement within a basic block.

Modified:
    cfe/trunk/Analysis/GRExprEngine.cpp

Modified: cfe/trunk/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRExprEngine.cpp?rev=48087&r1=48086&r2=48087&view=diff

==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Sat Mar  8 23:15:50 2008
@@ -94,7 +94,7 @@
 
 ValueState* GRExprEngine::SetBlkExprRVal(ValueState* St, Expr* Ex, RVal V) {
   
-  if (!StateCleaned) {
+  if (CurrentStmt && !StateCleaned) {
     St = RemoveDeadBindings(CurrentStmt, St);
     StateCleaned = true;
   }





More information about the cfe-commits mailing list