[cfe-commits] r47665 - /cfe/trunk/Analysis/GRExprEngine.cpp
Ted Kremenek
kremenek at apple.com
Tue Feb 26 23:04:17 PST 2008
Author: kremenek
Date: Wed Feb 27 01:04:16 2008
New Revision: 47665
URL: http://llvm.org/viewvc/llvm-project?rev=47665&view=rev
Log:
Small fix to VisitLVal: this method can be called on Block-Level expressions.
In such cases, handle them just like Visit().
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=47665&r1=47664&r2=47665&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Wed Feb 27 01:04:16 2008
@@ -887,8 +887,11 @@
}
void GRExprEngine::VisitLVal(Expr* Ex, NodeTy* Pred, NodeSet& Dst) {
-
- assert (Ex != CurrentStmt && !getCFG().isBlkExpr(Ex));
+
+ if (Ex != CurrentStmt && getCFG().isBlkExpr(Ex)) {
+ Dst.Add(Pred);
+ return;
+ }
Ex = Ex->IgnoreParens();
More information about the cfe-commits
mailing list