@@ -54,17 +54,17 @@ fn main() {
54
54
// ...
55
55
// _2 = std::option::Option<i32>::Some(const 42i32,);
56
56
// _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];
59
59
// }
60
60
// bb1: {
61
61
// resume;
62
62
// }
63
63
// 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 );
68
68
// goto -> bb13;
69
69
// }
70
70
// bb3: { // binding3(empty) and arm3
@@ -87,24 +87,26 @@ fn main() {
87
87
// unreachable;
88
88
// }
89
89
// 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];
94
94
// }
95
95
// 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];
97
99
// }
98
100
// bb11: { // to pre_binding2
99
101
// falseEdges -> [real: bb5, imaginary: bb5];
100
102
// }
101
103
// 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 );
108
110
// goto -> bb13;
109
111
// }
110
112
// bb13: {
@@ -118,17 +120,17 @@ fn main() {
118
120
// ...
119
121
// _2 = std::option::Option<i32>::Some(const 42i32,);
120
122
// _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];
123
125
// }
124
126
// bb1: {
125
127
// resume;
126
128
// }
127
129
// 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 );
132
134
// goto -> bb13;
133
135
// }
134
136
// bb3: { // binding3(empty) and arm3
@@ -151,24 +153,26 @@ fn main() {
151
153
// unreachable;
152
154
// }
153
155
// 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];
158
160
// }
159
161
// 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];
161
165
// }
162
166
// bb11: { // to pre_binding2
163
167
// falseEdges -> [real: bb6, imaginary: bb5];
164
168
// }
165
169
// 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 );
172
176
// goto -> bb13;
173
177
// }
174
178
// bb13: {
@@ -182,8 +186,8 @@ fn main() {
182
186
// ...
183
187
// _2 = std::option::Option<i32>::Some(const 1i32,);
184
188
// _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];
187
191
// }
188
192
// bb1: {
189
193
// resume;
@@ -213,41 +217,45 @@ fn main() {
213
217
// unreachable;
214
218
// }
215
219
// 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];
220
224
// }
221
225
// 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];
223
229
// }
224
230
// bb11: { // to pre_binding2
225
231
// falseEdges -> [real: bb5, imaginary: bb5];
226
232
// }
227
233
// bb12: { // binding2 & arm2
228
- // StorageLive(_5 );
229
- // _5 = _2;
234
+ // StorageLive(_6 );
235
+ // _6 = _2;
230
236
// _1 = const 2i32;
231
237
// goto -> bb17;
232
238
// }
233
239
// 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];
240
246
// }
241
247
// 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];
244
252
// }
245
253
// bb15: { // to pre_binding4
246
254
// falseEdges -> [real: bb7, imaginary: bb7];
247
255
// }
248
256
// bb16: { // binding4 & arm4
249
- // StorageLive(_7 );
250
- // _7 = _2;
257
+ // StorageLive(_9 );
258
+ // _9 = _2;
251
259
// _1 = const 4i32;
252
260
// goto -> bb17;
253
261
// }
0 commit comments