Skip to content

Commit c8beca6

Browse files
committed
blockfy instead of cast
1 parent 0d220bd commit c8beca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/passes/Inlining.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ struct Updater : public PostWalker<Updater> {
382382
return;
383383
}
384384

385-
Block* body = curr->cast<Block>();
385+
Block* body = builder->blockify(curr);
386+
curr = body;
386387
auto blockNames = BranchUtils::BranchAccumulator::get(body);
387388

388389
for (Index i = 0; i < returnCallInfos.size(); ++i) {

0 commit comments

Comments
 (0)