]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | // MIR for `main` after SimplifyLocals |
2 | ||
3 | fn main() -> () { | |
4 | let mut _0: (); // return place in scope 0 at $DIR/optimizes_into_variable.rs:11:11: 11:11 | |
5 | let _1: i32; // in scope 0 at $DIR/optimizes_into_variable.rs:12:9: 12:10 | |
6 | scope 1 { | |
7 | debug x => _1; // in scope 1 at $DIR/optimizes_into_variable.rs:12:9: 12:10 | |
8 | let _2: i32; // in scope 1 at $DIR/optimizes_into_variable.rs:13:9: 13:10 | |
9 | scope 2 { | |
10 | debug y => _2; // in scope 2 at $DIR/optimizes_into_variable.rs:13:9: 13:10 | |
11 | let _3: u32; // in scope 2 at $DIR/optimizes_into_variable.rs:14:9: 14:10 | |
12 | scope 3 { | |
13 | debug z => _3; // in scope 3 at $DIR/optimizes_into_variable.rs:14:9: 14:10 | |
14 | } | |
15 | } | |
16 | } | |
17 | ||
18 | bb0: { | |
f9f354fc | 19 | StorageLive(_1); // scope 0 at $DIR/optimizes_into_variable.rs:12:9: 12:10 |
f035d41b | 20 | _1 = const 4_i32; // scope 0 at $DIR/optimizes_into_variable.rs:12:13: 12:18 |
f9f354fc | 21 | StorageLive(_2); // scope 1 at $DIR/optimizes_into_variable.rs:13:9: 13:10 |
f035d41b | 22 | _2 = const 3_i32; // scope 1 at $DIR/optimizes_into_variable.rs:13:13: 13:34 |
f9f354fc | 23 | StorageLive(_3); // scope 2 at $DIR/optimizes_into_variable.rs:14:9: 14:10 |
f035d41b | 24 | _3 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:14:13: 14:38 |
f9f354fc XL |
25 | StorageDead(_3); // scope 2 at $DIR/optimizes_into_variable.rs:15:1: 15:2 |
26 | StorageDead(_2); // scope 1 at $DIR/optimizes_into_variable.rs:15:1: 15:2 | |
27 | StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:15:1: 15:2 | |
28 | return; // scope 0 at $DIR/optimizes_into_variable.rs:15:2: 15:2 | |
ba9703b0 XL |
29 | } |
30 | } |