2020-11-15 18:00:00 -06:00
|
|
|
- // MIR for `non_const` before LowerIntrinsics
|
|
|
|
+ // MIR for `non_const` after LowerIntrinsics
|
|
|
|
|
|
|
|
fn non_const() -> usize {
|
2021-09-10 18:54:10 -05:00
|
|
|
let mut _0: usize; // return place in scope 0 at $DIR/lower_intrinsics.rs:60:26: 60:31
|
|
|
|
let _1: extern "rust-intrinsic" fn() -> usize {std::intrinsics::size_of::<T>}; // in scope 0 at $DIR/lower_intrinsics.rs:62:9: 62:18
|
|
|
|
let mut _2: extern "rust-intrinsic" fn() -> usize {std::intrinsics::size_of::<T>}; // in scope 0 at $DIR/lower_intrinsics.rs:63:5: 63:14
|
2020-11-15 18:00:00 -06:00
|
|
|
scope 1 {
|
2021-09-10 18:54:10 -05:00
|
|
|
debug size_of_t => _1; // in scope 1 at $DIR/lower_intrinsics.rs:62:9: 62:18
|
2020-11-15 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2021-09-10 18:54:10 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/lower_intrinsics.rs:62:9: 62:18
|
|
|
|
_1 = std::intrinsics::size_of::<T>; // scope 0 at $DIR/lower_intrinsics.rs:62:21: 62:51
|
2020-11-15 18:00:00 -06:00
|
|
|
// mir::Constant
|
2021-09-10 18:54:10 -05:00
|
|
|
// + span: $DIR/lower_intrinsics.rs:62:21: 62:51
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: extern "rust-intrinsic" fn() -> usize {std::intrinsics::size_of::<T>}, val: Value(<ZST>) }
|
2021-09-10 18:54:10 -05:00
|
|
|
StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:63:5: 63:14
|
|
|
|
_2 = _1; // scope 1 at $DIR/lower_intrinsics.rs:63:5: 63:14
|
|
|
|
- _0 = move _2() -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:63:5: 63:16
|
|
|
|
+ _0 = SizeOf(T); // scope 1 at $DIR/lower_intrinsics.rs:63:5: 63:16
|
|
|
|
+ goto -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:63:5: 63:16
|
2020-11-15 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2021-09-10 18:54:10 -05:00
|
|
|
StorageDead(_2); // scope 1 at $DIR/lower_intrinsics.rs:63:15: 63:16
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/lower_intrinsics.rs:64:1: 64:2
|
|
|
|
return; // scope 0 at $DIR/lower_intrinsics.rs:64:2: 64:2
|
2020-11-15 18:00:00 -06:00
|
|
|
}
|
2020-12-14 18:00:00 -06:00
|
|
|
|
|
|
|
bb2 (cleanup): {
|
2021-09-10 18:54:10 -05:00
|
|
|
resume; // scope 0 at $DIR/lower_intrinsics.rs:60:1: 64:2
|
2020-12-14 18:00:00 -06:00
|
|
|
}
|
2020-11-15 18:00:00 -06:00
|
|
|
}
|
|
|
|
|