From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- ...nhabited_enum.process_void.SimplifyLocals.after.mir | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals.after.mir (limited to 'src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals.after.mir') diff --git a/src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals.after.mir b/src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals.after.mir new file mode 100644 index 000000000..bbb81724c --- /dev/null +++ b/src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals.after.mir @@ -0,0 +1,18 @@ +// MIR for `process_void` after SimplifyLocals + +fn process_void(_1: *const Void) -> () { + debug input => _1; // in scope 0 at $DIR/uninhabited-enum.rs:+0:21: +0:26 + let mut _0: (); // return place in scope 0 at $DIR/uninhabited-enum.rs:+0:41: +0:41 + let _2: &Void; // in scope 0 at $DIR/uninhabited-enum.rs:+1:8: +1:14 + scope 1 { + debug _input => _2; // in scope 1 at $DIR/uninhabited-enum.rs:+1:8: +1:14 + } + scope 2 { + } + + bb0: { + StorageLive(_2); // scope 0 at $DIR/uninhabited-enum.rs:+1:8: +1:14 + StorageDead(_2); // scope 0 at $DIR/uninhabited-enum.rs:+4:1: +4:2 + return; // scope 0 at $DIR/uninhabited-enum.rs:+4:2: +4:2 + } +} -- cgit v1.2.3