about summary refs log tree commit diff
path: root/src/test/mir-opt/inline/inline_shims.drop.Inline.diff
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-15 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-15 00:00:00 +0000
commitf27d56d1ff2fdbb86cb1fc86fb06bf32f009ada0 (patch)
tree30cd6a34abaae0085f34220f89a31ef977439368 /src/test/mir-opt/inline/inline_shims.drop.Inline.diff
parent75042566d1c90d912f22e4db43b6d3af98447986 (diff)
downloadrust-f27d56d1ff2fdbb86cb1fc86fb06bf32f009ada0.tar.gz
rust-f27d56d1ff2fdbb86cb1fc86fb06bf32f009ada0.zip
Limit storage duration of inlined always live locals
Diffstat (limited to 'src/test/mir-opt/inline/inline_shims.drop.Inline.diff')
-rw-r--r--src/test/mir-opt/inline/inline_shims.drop.Inline.diff4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/mir-opt/inline/inline_shims.drop.Inline.diff b/src/test/mir-opt/inline/inline_shims.drop.Inline.diff
index 503d8bc6b7a..092ff42c3b6 100644
--- a/src/test/mir-opt/inline/inline_shims.drop.Inline.diff
+++ b/src/test/mir-opt/inline/inline_shims.drop.Inline.diff
@@ -36,11 +36,15 @@
 -                                          // mir::Constant
 -                                          // + span: $DIR/inline-shims.rs:12:14: 12:37
 -                                          // + literal: Const { ty: unsafe fn(*mut std::option::Option<B>) {std::intrinsics::drop_in_place::<std::option::Option<B>>}, val: Value(Scalar(<ZST>)) }
++         StorageLive(_6);                 // scope 2 at $DIR/inline-shims.rs:12:14: 12:40
++         StorageLive(_7);                 // scope 2 at $DIR/inline-shims.rs:12:14: 12:40
 +         _6 = discriminant((*_5));        // scope 3 at $DIR/inline-shims.rs:12:14: 12:40
 +         switchInt(move _6) -> [0_isize: bb2, otherwise: bb3]; // scope 3 at $DIR/inline-shims.rs:12:14: 12:40
       }
   
       bb2: {
++         StorageDead(_7);                 // scope 2 at $DIR/inline-shims.rs:12:14: 12:40
++         StorageDead(_6);                 // scope 2 at $DIR/inline-shims.rs:12:14: 12:40
           StorageDead(_5);                 // scope 2 at $DIR/inline-shims.rs:12:39: 12:40
           return;                          // scope 0 at $DIR/inline-shims.rs:13:2: 13:2
 +     }