|
19 | 19 | }
|
20 | 20 | scope 5 (inlined <std::alloc::Global as Allocator>::allocate) {
|
21 | 21 | }
|
22 |
| - scope 6 (inlined NonNull::<[u8]>::as_ptr) { |
23 |
| - let mut _12: *const [u8]; |
| 22 | + scope 6 (inlined #[track_caller] Result::<NonNull<[u8]>, std::alloc::AllocError>::unwrap) { |
| 23 | + let mut _12: isize; |
| 24 | + let _13: std::alloc::AllocError; |
| 25 | + let mut _14: !; |
| 26 | + let mut _15: &dyn std::fmt::Debug; |
| 27 | + let mut _16: &std::alloc::AllocError; |
| 28 | + scope 7 { |
| 29 | + } |
| 30 | + scope 8 { |
| 31 | + } |
| 32 | + } |
| 33 | + scope 9 (inlined NonNull::<[u8]>::as_ptr) { |
| 34 | + let mut _17: *const [u8]; |
24 | 35 | }
|
25 | 36 | }
|
26 | 37 | scope 3 (inlined #[track_caller] Option::<Layout>::unwrap) {
|
|
38 | 49 | + _2 = const Option::<Layout>::None;
|
39 | 50 | StorageLive(_10);
|
40 | 51 | - _10 = discriminant(_2);
|
41 |
| -- switchInt(move _10) -> [0: bb3, 1: bb4, otherwise: bb2]; |
| 52 | +- switchInt(move _10) -> [0: bb2, 1: bb3, otherwise: bb1]; |
42 | 53 | + _10 = const 0_isize;
|
43 |
| -+ switchInt(const 0_isize) -> [0: bb3, 1: bb4, otherwise: bb2]; |
| 54 | ++ switchInt(const 0_isize) -> [0: bb2, 1: bb3, otherwise: bb1]; |
44 | 55 | }
|
45 | 56 |
|
46 | 57 | bb1: {
|
47 |
| - StorageDead(_6); |
48 |
| -- StorageLive(_12); |
49 |
| -+ nop; |
50 |
| - _12 = (_5.0: *const [u8]); |
51 |
| -- _4 = move _12 as *mut [u8] (PtrToPtr); |
52 |
| -- StorageDead(_12); |
53 |
| -+ _4 = _12 as *mut [u8] (PtrToPtr); |
54 |
| -+ nop; |
55 |
| - StorageDead(_5); |
56 |
| -- _3 = move _4 as *mut u8 (PtrToPtr); |
57 |
| -+ _3 = _12 as *mut u8 (PtrToPtr); |
58 |
| - StorageDead(_4); |
59 |
| - StorageDead(_3); |
60 |
| -- StorageDead(_1); |
61 |
| -+ nop; |
62 |
| - return; |
63 |
| - } |
64 |
| - |
65 |
| - bb2: { |
66 | 58 | unreachable;
|
67 | 59 | }
|
68 | 60 |
|
69 |
| - bb3: { |
| 61 | + bb2: { |
70 | 62 | _11 = option::unwrap_failed() -> unwind continue;
|
71 | 63 | }
|
72 | 64 |
|
73 |
| - bb4: { |
| 65 | + bb3: { |
74 | 66 | - _1 = move ((_2 as Some).0: std::alloc::Layout);
|
75 | 67 | + _1 = const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(4 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x00000000): std::ptr::alignment::AlignmentEnum) }};
|
76 | 68 | StorageDead(_10);
|
|
85 | 77 | + _7 = const {ALLOC1<imm>: &std::alloc::Global};
|
86 | 78 | StorageLive(_8);
|
87 | 79 | - _8 = _1;
|
88 |
| -- _6 = std::alloc::Global::alloc_impl(move _7, move _8, const false) -> [return: bb5, unwind continue]; |
| 80 | +- _6 = std::alloc::Global::alloc_impl(move _7, move _8, const false) -> [return: bb4, unwind continue]; |
89 | 81 | + _8 = const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(4 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x00000000): std::ptr::alignment::AlignmentEnum) }};
|
90 |
| -+ _6 = std::alloc::Global::alloc_impl(const {ALLOC1<imm>: &std::alloc::Global}, const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(4 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x00000000): std::ptr::alignment::AlignmentEnum) }}, const false) -> [return: bb5, unwind continue]; |
| 82 | ++ _6 = std::alloc::Global::alloc_impl(const {ALLOC1<imm>: &std::alloc::Global}, const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(4 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x00000000): std::ptr::alignment::AlignmentEnum) }}, const false) -> [return: bb4, unwind continue]; |
91 | 83 | }
|
92 | 84 |
|
93 |
| - bb5: { |
| 85 | + bb4: { |
94 | 86 | StorageDead(_8);
|
95 | 87 | StorageDead(_7);
|
96 |
| - _5 = Result::<NonNull<[u8]>, std::alloc::AllocError>::unwrap(move _6) -> [return: bb1, unwind continue]; |
| 88 | + StorageLive(_12); |
| 89 | + _12 = discriminant(_6); |
| 90 | + switchInt(move _12) -> [0: bb6, 1: bb5, otherwise: bb1]; |
| 91 | + } |
| 92 | + |
| 93 | + bb5: { |
| 94 | + StorageLive(_15); |
| 95 | + StorageLive(_16); |
| 96 | + _16 = &_13; |
| 97 | + _15 = move _16 as &dyn std::fmt::Debug (PointerCoercion(Unsize)); |
| 98 | + StorageDead(_16); |
| 99 | + _14 = result::unwrap_failed(const "called `Result::unwrap()` on an `Err` value", move _15) -> bb7; |
| 100 | + } |
| 101 | + |
| 102 | + bb6: { |
| 103 | + _5 = move ((_6 as Ok).0: std::ptr::NonNull<[u8]>); |
| 104 | + StorageDead(_12); |
| 105 | + StorageDead(_6); |
| 106 | +- StorageLive(_17); |
| 107 | ++ nop; |
| 108 | + _17 = (_5.0: *const [u8]); |
| 109 | +- _4 = move _17 as *mut [u8] (PtrToPtr); |
| 110 | +- StorageDead(_17); |
| 111 | ++ _4 = _17 as *mut [u8] (PtrToPtr); |
| 112 | ++ nop; |
| 113 | + StorageDead(_5); |
| 114 | +- _3 = move _4 as *mut u8 (PtrToPtr); |
| 115 | ++ _3 = _17 as *mut u8 (PtrToPtr); |
| 116 | + StorageDead(_4); |
| 117 | + StorageDead(_3); |
| 118 | +- StorageDead(_1); |
| 119 | ++ nop; |
| 120 | + return; |
| 121 | + } |
| 122 | + |
| 123 | + bb7 (cleanup): { |
| 124 | + resume; |
97 | 125 | }
|
98 | 126 | }
|
99 | 127 | +
|
|
0 commit comments