2020-11-16 00:00:00 +00:00
|
|
|
- // MIR for `non_const` before LowerIntrinsics
|
|
|
|
+ // MIR for `non_const` after LowerIntrinsics
|
|
|
|
|
|
|
|
fn non_const() -> usize {
|
2022-07-27 18:47:42 +00:00
|
|
|
let mut _0: usize; // return place in scope 0 at $DIR/lower_intrinsics.rs:+0:26: +0:31
|
|
|
|
let _1: extern "rust-intrinsic" fn() -> usize {std::intrinsics::size_of::<T>}; // in scope 0 at $DIR/lower_intrinsics.rs:+2:9: +2:18
|
|
|
|
let mut _2: extern "rust-intrinsic" fn() -> usize {std::intrinsics::size_of::<T>}; // in scope 0 at $DIR/lower_intrinsics.rs:+3:5: +3:14
|
2020-11-16 00:00:00 +00:00
|
|
|
scope 1 {
|
2022-07-27 18:47:42 +00:00
|
|
|
debug size_of_t => _1; // in scope 1 at $DIR/lower_intrinsics.rs:+2:9: +2:18
|
2020-11-16 00:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 18:47:42 +00:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/lower_intrinsics.rs:+2:9: +2:18
|
|
|
|
_1 = std::intrinsics::size_of::<T>; // scope 0 at $DIR/lower_intrinsics.rs:+2:21: +2:51
|
2020-11-16 00:00:00 +00:00
|
|
|
// mir::Constant
|
2023-06-01 06:58:20 +00:00
|
|
|
// + span: $DIR/lower_intrinsics.rs:43:21: 43:51
|
2022-07-06 14:14:46 +00:00
|
|
|
// + literal: Const { ty: extern "rust-intrinsic" fn() -> usize {std::intrinsics::size_of::<T>}, val: Value(<ZST>) }
|
2022-07-27 18:47:42 +00:00
|
|
|
StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:+3:5: +3:14
|
|
|
|
_2 = _1; // scope 1 at $DIR/lower_intrinsics.rs:+3:5: +3:14
|
2023-04-05 08:17:40 +00:00
|
|
|
- _0 = move _2() -> [return: bb1, unwind unreachable]; // scope 1 at $DIR/lower_intrinsics.rs:+3:5: +3:16
|
2022-07-27 18:47:42 +00:00
|
|
|
+ _0 = SizeOf(T); // scope 1 at $DIR/lower_intrinsics.rs:+3:5: +3:16
|
|
|
|
+ goto -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:+3:5: +3:16
|
2020-11-16 00:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-07-27 18:47:42 +00:00
|
|
|
StorageDead(_2); // scope 1 at $DIR/lower_intrinsics.rs:+3:15: +3:16
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/lower_intrinsics.rs:+4:1: +4:2
|
|
|
|
return; // scope 0 at $DIR/lower_intrinsics.rs:+4:2: +4:2
|
2020-11-16 00:00:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|