about summary refs log tree commit diff
path: root/tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-24 21:47:53 +0000
committerbors <bors@rust-lang.org>2023-10-24 21:47:53 +0000
commitdf871fbf053de3a855398964cd05fadbe91cf4fd (patch)
treef9bde4acab06d6aad30130ff26aaaca350578b4f /tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff
parent151256bd4b577f92922c0fbdf94b12d69cfb08d3 (diff)
parent9c85dfa1d755004b5499f45e2fd921c298f90a2e (diff)
Auto merge of #115796 - cjgillot:const-prop-rvalue, r=oli-obk
Generate aggregate constants in DataflowConstProp.
Diffstat (limited to 'tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff')
-rw-r--r--tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff b/tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff
index ed47baa67da..313e5dddbbb 100644
--- a/tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff
+++ b/tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff
@@ -41,7 +41,8 @@
 +                             debug ((f: (bool, bool, u32)).2: u32) => const 123_u32;
                               let _10: std::option::Option<u16>;
                               scope 7 {
-                                  debug o => _10;
+-                                 debug o => _10;
++                                 debug o => const Option::<u16>::Some(99_u16);
                                   let _17: u32;
                                   let _18: u32;
                                   scope 8 {
@@ -81,7 +82,7 @@
           _15 = const false;
           _16 = const 123_u32;
           StorageLive(_10);
-          _10 = Option::<u16>::Some(const 99_u16);
+          _10 = const Option::<u16>::Some(99_u16);
           _17 = const 32_u32;
           _18 = const 32_u32;
           StorageLive(_11);
@@ -97,3 +98,7 @@
       }
   }
   
+  ALLOC0 (size: 4, align: 2) {
+      01 00 63 00                                     │ ..c.
+  }
+