rust/tests/mir-opt/dataflow-const-prop/offset_of.generic.DataflowConstProp.panic-abort.diff

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

43 lines
1.0 KiB
Diff
Raw Normal View History

2023-04-15 11:41:57 -05:00
- // MIR for `generic` before DataflowConstProp
+ // MIR for `generic` after DataflowConstProp
fn generic() -> () {
let mut _0: ();
let _1: usize;
scope 1 {
debug gx => _1;
let _2: usize;
2023-04-15 11:41:57 -05:00
scope 2 {
debug gy => _2;
let _3: usize;
2023-04-15 11:41:57 -05:00
scope 3 {
debug dx => _3;
let _4: usize;
2023-04-15 11:41:57 -05:00
scope 4 {
debug dy => _4;
2023-04-15 11:41:57 -05:00
}
}
}
}
bb0: {
StorageLive(_1);
_1 = OffsetOf(Gamma<T>, [(0, 0)]);
2023-04-15 11:41:57 -05:00
StorageLive(_2);
_2 = OffsetOf(Gamma<T>, [(0, 1)]);
2023-04-15 11:41:57 -05:00
StorageLive(_3);
- _3 = OffsetOf(Delta<T>, [(0, 1)]);
+ _3 = const 0_usize;
2023-04-15 11:41:57 -05:00
StorageLive(_4);
- _4 = OffsetOf(Delta<T>, [(0, 2)]);
+ _4 = const 2_usize;
2023-04-15 11:41:57 -05:00
_0 = const ();
StorageDead(_4);
2023-04-15 11:41:57 -05:00
StorageDead(_3);
StorageDead(_2);
2023-04-15 11:41:57 -05:00
StorageDead(_1);
return;
}
}