]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/return_place/rustc.add.PreCodegen.before.mir
Show the values and computation that would overflow a const evaluation or propagation
[rust.git] / src / test / mir-opt / const_prop / return_place / rustc.add.PreCodegen.before.mir
1 // MIR for `add` before PreCodegen
2
3 fn add() -> u32 {
4     let mut _0: u32;                     // return place in scope 0 at $DIR/return_place.rs:5:13: 5:16
5
6     bb0: {
7         _0 = const 4_u32;                // scope 0 at $DIR/return_place.rs:6:5: 6:10
8                                          // ty::Const
9                                          // + ty: u32
10                                          // + val: Value(Scalar(0x00000004))
11                                          // mir::Constant
12                                          // + span: $DIR/return_place.rs:6:5: 6:10
13                                          // + literal: Const { ty: u32, val: Value(Scalar(0x00000004)) }
14         return;                          // scope 0 at $DIR/return_place.rs:7:2: 7:2
15     }
16 }