@@ -54,17 +54,17 @@ fn main() {
5454// ...
5555// _2 = std::option::Option<i32>::Some(const 42i32,);
5656// _3 = discriminant(_2);
57- // _6 = discriminant(_2);
58- // switchInt(move _6 ) -> [0isize: bb6, 1isize: bb4, otherwise: bb8];
57+ // _7 = discriminant(_2);
58+ // switchInt(move _7 ) -> [0isize: bb6, 1isize: bb4, otherwise: bb8];
5959// }
6060// bb1: {
6161// resume;
6262// }
6363// bb2: { // arm1
64- // StorageLive(_8 );
65- // _8 = _4;
66- // _1 = (const 1i32, move _8 );
67- // StorageDead(_8 );
64+ // StorageLive(_9 );
65+ // _9 = _4;
66+ // _1 = (const 1i32, move _9 );
67+ // StorageDead(_9 );
6868// goto -> bb13;
6969// }
7070// bb3: { // binding3(empty) and arm3
@@ -87,24 +87,26 @@ fn main() {
8787// unreachable;
8888// }
8989// bb9: { // binding1 and guard
90- // StorageLive(_4 );
91- // _4 = ((_2 as Some).0: i32);
92- // StorageLive(_7 );
93- // _7 = const guard() -> [return: bb10, unwind: bb1];
90+ // StorageLive(_5 );
91+ // _5 = & ((_2 as Some).0: i32);
92+ // StorageLive(_8 );
93+ // _8 = const guard() -> [return: bb10, unwind: bb1];
9494// }
9595// bb10: { // end of guard
96- // switchInt(move _7) -> [false: bb11, otherwise: bb2];
96+ // StorageLive(_4);
97+ // _4 = ((_2 as Some).0: i32);
98+ // switchInt(move _8) -> [false: bb11, otherwise: bb2];
9799// }
98100// bb11: { // to pre_binding2
99101// falseEdges -> [real: bb5, imaginary: bb5];
100102// }
101103// bb12: { // bindingNoLandingPads.before.mir2 and arm2
102- // StorageLive(_5 );
103- // _5 = ((_2 as Some).0: i32);
104- // StorageLive(_9 );
105- // _9 = _5 ;
106- // _1 = (const 2i32, move _9 );
107- // StorageDead(_9 );
104+ // StorageLive(_6 );
105+ // _6 = ((_2 as Some).0: i32);
106+ // StorageLive(_10 );
107+ // _10 = _6 ;
108+ // _1 = (const 2i32, move _10 );
109+ // StorageDead(_10 );
108110// goto -> bb13;
109111// }
110112// bb13: {
@@ -118,17 +120,17 @@ fn main() {
118120// ...
119121// _2 = std::option::Option<i32>::Some(const 42i32,);
120122// _3 = discriminant(_2);
121- // _6 = discriminant(_2);
122- // switchInt(move _6 ) -> [0isize: bb5, 1isize: bb4, otherwise: bb8];
123+ // _7 = discriminant(_2);
124+ // switchInt(move _7 ) -> [0isize: bb5, 1isize: bb4, otherwise: bb8];
123125// }
124126// bb1: {
125127// resume;
126128// }
127129// bb2: { // arm1
128- // StorageLive(_8 );
129- // _8 = _4;
130- // _1 = (const 1i32, move _8 );
131- // StorageDead(_8 );
130+ // StorageLive(_9 );
131+ // _9 = _4;
132+ // _1 = (const 1i32, move _9 );
133+ // StorageDead(_9 );
132134// goto -> bb13;
133135// }
134136// bb3: { // binding3(empty) and arm3
@@ -151,24 +153,26 @@ fn main() {
151153// unreachable;
152154// }
153155// bb9: { // binding1 and guard
154- // StorageLive(_4 );
155- // _4 = ((_2 as Some).0: i32);
156- // StorageLive(_7 );
157- // _7 = const guard() -> [return: bb10, unwind: bb1];
156+ // StorageLive(_5 );
157+ // _5 = & ((_2 as Some).0: i32);
158+ // StorageLive(_8 );
159+ // _8 = const guard() -> [return: bb10, unwind: bb1];
158160// }
159161// bb10: { // end of guard
160- // switchInt(move _7) -> [false: bb11, otherwise: bb2];
162+ // StorageLive(_4);
163+ // _4 = ((_2 as Some).0: i32);
164+ // switchInt(move _8) -> [false: bb11, otherwise: bb2];
161165// }
162166// bb11: { // to pre_binding2
163167// falseEdges -> [real: bb6, imaginary: bb5];
164168// }
165169// bb12: { // binding2 and arm2
166- // StorageLive(_5 );
167- // _5 = ((_2 as Some).0: i32);
168- // StorageLive(_9 );
169- // _9 = _5 ;
170- // _1 = (const 2i32, move _9 );
171- // StorageDead(_9 );
170+ // StorageLive(_6 );
171+ // _6 = ((_2 as Some).0: i32);
172+ // StorageLive(_10 );
173+ // _10 = _6 ;
174+ // _1 = (const 2i32, move _10 );
175+ // StorageDead(_10 );
172176// goto -> bb13;
173177// }
174178// bb13: {
@@ -182,8 +186,8 @@ fn main() {
182186// ...
183187// _2 = std::option::Option<i32>::Some(const 1i32,);
184188// _3 = discriminant(_2);
185- // _8 = discriminant(_2);
186- // switchInt(move _8 ) -> [1isize: bb4, otherwise: bb5];
189+ // _10 = discriminant(_2);
190+ // switchInt(move _10 ) -> [1isize: bb4, otherwise: bb5];
187191// }
188192// bb1: {
189193// resume;
@@ -213,41 +217,45 @@ fn main() {
213217// unreachable;
214218// }
215219// bb9: { // binding1: Some(w) if guard()
216- // StorageLive(_4 );
217- // _4 = ((_2 as Some).0: i32);
218- // StorageLive(_9 );
219- // _9 = const guard() -> [return: bb10, unwind: bb1];
220+ // StorageLive(_5 );
221+ // _5 = & ((_2 as Some).0: i32);
222+ // StorageLive(_11 );
223+ // _11 = const guard() -> [return: bb10, unwind: bb1];
220224// }
221225// bb10: { //end of guard
222- // switchInt(move _9) -> [false: bb11, otherwise: bb2];
226+ // StorageLive(_4);
227+ // _4 = ((_2 as Some).0: i32);
228+ // switchInt(move _11) -> [false: bb11, otherwise: bb2];
223229// }
224230// bb11: { // to pre_binding2
225231// falseEdges -> [real: bb5, imaginary: bb5];
226232// }
227233// bb12: { // binding2 & arm2
228- // StorageLive(_5 );
229- // _5 = _2;
234+ // StorageLive(_6 );
235+ // _6 = _2;
230236// _1 = const 2i32;
231237// goto -> bb17;
232238// }
233239// bb13: { // binding3: Some(y) if guard2(y)
234- // StorageLive(_6 );
235- // _6 = ((_2 as Some).0: i32);
236- // StorageLive(_11 );
237- // StorageLive(_12 );
238- // _12 = _6 ;
239- // _11 = const guard2(move _12 ) -> [return: bb14, unwind: bb1];
240+ // StorageLive(_8 );
241+ // _8 = & ((_2 as Some).0: i32);
242+ // StorageLive(_13 );
243+ // StorageLive(_14 );
244+ // _14 = (*_8) ;
245+ // _13 = const guard2(move _14 ) -> [return: bb14, unwind: bb1];
240246// }
241247// bb14: { // end of guard2
242- // StorageDead(_12);
243- // switchInt(move _11) -> [false: bb15, otherwise: bb3];
248+ // StorageDead(_14);
249+ // StorageLive(_7);
250+ // _7 = ((_2 as Some).0: i32);
251+ // switchInt(move _13) -> [false: bb15, otherwise: bb3];
244252// }
245253// bb15: { // to pre_binding4
246254// falseEdges -> [real: bb7, imaginary: bb7];
247255// }
248256// bb16: { // binding4 & arm4
249- // StorageLive(_7 );
250- // _7 = _2;
257+ // StorageLive(_9 );
258+ // _9 = _2;
251259// _1 = const 4i32;
252260// goto -> bb17;
253261// }
0 commit comments