rust/tests/mir-opt/issue_41697.{impl#0}-{const...

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

21 lines
561 B
Rust
Raw Normal View History

2022-11-03 05:54:49 +08:00
// MIR for `<impl at $DIR/issue_41697.rs:18:1: 18:23>::{constant#0}` after SimplifyCfg-promote-consts
2020-04-03 05:09:01 +08:00
2022-11-03 05:54:49 +08:00
<impl at $DIR/issue_41697.rs:18:1: 18:23>::{constant#0}: usize = {
2023-06-06 21:47:00 +08:00
let mut _0: usize;
let mut _1: (usize, bool);
2020-04-03 05:09:01 +08:00
bb0: {
2023-06-06 21:47:00 +08:00
_1 = CheckedAdd(const 1_usize, const 1_usize);
assert(!move (_1.1: bool), "attempt to compute `{} + {}`, which would overflow", const 1_usize, const 1_usize) -> [success: bb1, unwind: bb2];
2020-04-03 05:09:01 +08:00
}
2020-10-03 04:11:24 +08:00
bb1: {
2023-06-06 21:47:00 +08:00
_0 = move (_1.0: usize);
return;
2020-05-03 02:59:05 +08:00
}
2020-10-03 04:11:24 +08:00
bb2 (cleanup): {
2023-06-06 21:47:00 +08:00
resume;
2020-10-03 04:11:24 +08:00
}
2020-04-03 05:09:01 +08:00
}