rust/src/test/mir-opt/const_prop/return_place.add.PreCodegen...

17 lines
779 B
Plaintext
Raw Normal View History

2020-04-04 19:15:01 +02:00
// MIR for `add` before PreCodegen
fn add() -> u32 {
let mut _0: u32; // return place in scope 0 at $DIR/return_place.rs:5:13: 5:16
bb0: {
_0 = const 4_u32; // scope 0 at $DIR/return_place.rs:6:5: 6:10
2020-04-04 19:15:01 +02:00
// ty::Const
// + ty: u32
// + val: Value(Scalar(0x00000004))
// mir::Constant
// + span: $DIR/return_place.rs:6:5: 6:10
// + literal: Const { ty: u32, val: Value(Scalar(0x00000004)) }
return; // scope 0 at $DIR/return_place.rs:7:2: 7:2
2020-04-04 19:15:01 +02:00
}
}