rust/tests/mir-opt/inline/inline_diverging.h.Inline.panic-unwind.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Diff
Raw Normal View History

- // MIR for `h` before Inline
+ // MIR for `h` after Inline
fn h() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let _1: (!, !);
+ let mut _2: fn() -> ! {sleep};
+ let mut _8: ();
+ scope 1 (inlined call_twice::<!, fn() -> ! {sleep}>) {
+ debug f => _2;
+ let mut _3: &fn() -> ! {sleep};
+ let _4: !;
+ let mut _5: &fn() -> ! {sleep};
+ let mut _6: !;
+ let mut _7: !;
+ scope 2 {
2023-06-06 08:47:00 -05:00
+ debug a => _4;
+ scope 3 {
2023-06-06 08:47:00 -05:00
+ debug b => _6;
+ }
+ }
2023-06-06 08:47:00 -05:00
+ scope 4 (inlined <fn() -> ! {sleep} as Fn<()>>::call - shim(fn() -> ! {sleep})) {
+ scope 5 (inlined sleep) {
+ }
2023-01-02 00:01:29 -06:00
+ }
+ }
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
2023-06-23 11:53:09 -05:00
- _1 = call_twice::<!, fn() -> ! {sleep}>(sleep) -> unwind continue;
2023-06-06 08:47:00 -05:00
+ StorageLive(_2);
+ _2 = sleep;
+ StorageLive(_6);
+ StorageLive(_4);
+ StorageLive(_3);
+ _3 = &_2;
+ StorageLive(_8);
+ _8 = const ();
+ goto -> bb1;
+ }
+
+ bb1: {
2023-06-06 08:47:00 -05:00
+ goto -> bb1;
}
}