summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.panic-unwin...
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.panic-unwind.mir
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.panic-unwind.mir')
-rw-r--r--tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.panic-unwind.mir55
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.panic-unwind.mir b/tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.panic-unwind.mir
new file mode 100644
index 000000000..bc0479002
--- /dev/null
+++ b/tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.panic-unwind.mir
@@ -0,0 +1,55 @@
+// MIR for `main` after SimplifyCfg-elaborate-drops
+
+fn main() -> () {
+ let mut _0: ();
+ let mut _1: Packed;
+ let mut _2: Aligned;
+ let mut _3: Droppy;
+ let mut _4: Aligned;
+ let mut _5: Droppy;
+ let mut _6: Aligned;
+ scope 1 {
+ debug x => _1;
+ }
+
+ bb0: {
+ StorageLive(_1);
+ StorageLive(_2);
+ StorageLive(_3);
+ _3 = Droppy(const 0_usize);
+ _2 = Aligned(move _3);
+ StorageDead(_3);
+ _1 = Packed(move _2);
+ StorageDead(_2);
+ StorageLive(_4);
+ StorageLive(_5);
+ _5 = Droppy(const 0_usize);
+ _4 = Aligned(move _5);
+ StorageDead(_5);
+ StorageLive(_6);
+ _6 = move (_1.0: Aligned);
+ drop(_6) -> [return: bb4, unwind: bb1];
+ }
+
+ bb1 (cleanup): {
+ (_1.0: Aligned) = move _4;
+ drop(_1) -> [return: bb3, unwind terminate];
+ }
+
+ bb2: {
+ StorageDead(_1);
+ return;
+ }
+
+ bb3 (cleanup): {
+ resume;
+ }
+
+ bb4: {
+ StorageDead(_6);
+ (_1.0: Aligned) = move _4;
+ StorageDead(_4);
+ _0 = const ();
+ drop(_1) -> [return: bb2, unwind: bb3];
+ }
+}