Skip to content

Commit 203e33b

Browse files
committed
Make join_results branch into the join block even when only one edge is live.
I don't don't totally understand the implications of this but it makes the behavior consistent for all live edges, which is going to make joining the arms of an alt expression work correctly.
1 parent 6e6acaa commit 203e33b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/comp/middle/trans.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,12 +3045,6 @@ fn join_results(@block_ctxt parent_cx,
30453045
ret ins.(0);
30463046
}
30473047

3048-
case (1u) {
3049-
// Only one incoming edge is live, so we just feed that block
3050-
// onward.
3051-
ret live.(0);
3052-
}
3053-
30543048
case (_) { /* fall through */ }
30553049
}
30563050

0 commit comments

Comments
 (0)