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.
This commit is contained in:
parent
6e6acaa39a
commit
203e33b611
@ -3045,12 +3045,6 @@ fn join_results(@block_ctxt parent_cx,
|
||||
ret ins.(0);
|
||||
}
|
||||
|
||||
case (1u) {
|
||||
// Only one incoming edge is live, so we just feed that block
|
||||
// onward.
|
||||
ret live.(0);
|
||||
}
|
||||
|
||||
case (_) { /* fall through */ }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user