rust/tests/mir-opt/pre-codegen/duplicate_switch_targets.ub_if_b.PreCodegen.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
466 B
Rust
Raw Normal View History

// MIR for `ub_if_b` after PreCodegen
fn ub_if_b(_1: Thing) -> Thing {
2023-06-06 08:47:00 -05:00
debug t => _1;
let mut _0: Thing;
let mut _2: isize;
2023-07-22 10:34:22 -05:00
let mut _3: bool;
2023-06-06 08:47:00 -05:00
scope 1 (inlined unreachable_unchecked) {
scope 2 {
2023-06-06 08:47:00 -05:00
scope 3 (inlined unreachable_unchecked::runtime) {
}
}
}
bb0: {
2023-06-06 08:47:00 -05:00
_2 = discriminant(_1);
_3 = Eq(_2, const 0_isize);
2023-07-22 10:34:22 -05:00
assume(move _3);
2023-06-06 08:47:00 -05:00
_0 = move _1;
return;
}
}