Small fix to VisitLVal: this method can be called on Block-Level expressions.

In such cases, handle them just like Visit().

llvm-svn: 47665
This commit is contained in:
Ted Kremenek 2008-02-27 07:04:16 +00:00
parent 1c64daba5b
commit cbb21b61c8
1 changed files with 5 additions and 2 deletions

View File

@ -887,8 +887,11 @@ void GRExprEngine::VisitSizeOfExpr(UnaryOperator* U, NodeTy* Pred,
}
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();