Skip to content

Commit 2c7f21c

Browse files
committed
Properly mark unreachable alt bodies as unreachable
1 parent 572a4b7 commit 2c7f21c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/comp/middle/trans_alt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ fn make_phi_bindings(bcx: @block_ctxt, map: [exit_node],
512512
bcx.fcx.lllocals.insert(node_id, alloc);
513513
}
514514
}
515+
} else {
516+
Unreachable(bcx);
515517
}
516518
ret success;
517519
}

0 commit comments

Comments
 (0)