summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-09-17 09:35:06 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-21 16:26:05 +0000
commit8c1b039d482149f643a88c6d7af526b18f56dd8f (patch)
tree92c781f404a4632691b9b226be17f833c0b6cb44 /tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff
parent31d101093c134e69a31ba58893e56647a5831299 (diff)
downloadrust-8c1b039d482149f643a88c6d7af526b18f56dd8f.tar.gz
rust-8c1b039d482149f643a88c6d7af526b18f56dd8f.zip
Use a ConstValue instead.
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff')
-rw-r--r--tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff
index 1e7fdd3b1a0..798b0c041b4 100644
--- a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff
+++ b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff
@@ -24,7 +24,7 @@
       bb0: {
           StorageLive(_1);
 -         _1 = E::V1(const 0_i32);
-+         _1 = const E::V1(0);
++         _1 = const E::V1(0_i32);
           StorageLive(_2);
 -         _3 = discriminant(_1);
 -         switchInt(move _3) -> [0: bb3, 1: bb1, otherwise: bb2];
@@ -60,5 +60,9 @@
           StorageDead(_1);
           return;
       }
++ }
++ 
++ ALLOC0 (size: 8, align: 4) {
++     00 00 00 00 00 00 00 00                         │ ........
   }