Skip to content

Commit

Permalink
blockfy instead of cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Apr 4, 2024
1 parent 58d7969 commit adb1c54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/passes/Inlining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ struct Updater : public PostWalker<Updater> {
return;
}

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

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

0 comments on commit adb1c54

Please # to comment.