Skip to content

Commit da24bf6

Browse files
committed
Fix build error
1 parent 784edb6 commit da24bf6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/PulseGenerator.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,9 +1213,8 @@ PulseStmt *PulseVisitor::pulseFromStmt(Stmt *S, ExprMutationAnalyzer *Analyzer,
12131213

12141214
auto MemberName = LhsDecl->getDeclName();
12151215

1216-
// TODO: Angelica, I don't this releasing expressions before is
1217-
// required. This was done because Pulse was not in ANF before.
1218-
// However, it is in ANF now.
1216+
// UPDATE: Vidush: Releasing expresssions may be required in certain cases.
1217+
//Especially when you want to add calls to explode struct.
12191218
SmallVector<PulseStmt *> ExprsBef;
12201219
auto *PulseRhsTerm =
12211220
getTermFromCExpr(Rhs, Analyzer, ExprsBef, Parent,BO->getType(), Module);
@@ -1289,7 +1288,6 @@ PulseStmt *PulseVisitor::pulseFromStmt(Stmt *S, ExprMutationAnalyzer *Analyzer,
12891288
// Perhaps warp this In Pulse Expr
12901289
auto *Expr = new PulseExpr();
12911290
Expr->E = GenStmt;
1292-
assert(ExprsBef.empty() && "Expected Exprs before to be empty!\n");
12931291

12941292
auto It = TrackStructExplodeAndRecover.find(VD);
12951293
if (It == TrackStructExplodeAndRecover.end()) {

0 commit comments

Comments
 (0)