forked from OSchip/llvm-project
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:
parent
1c64daba5b
commit
cbb21b61c8
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue