about summary refs log tree commit diff
path: root/tests/codegen/slice-iter-len-eq-zero.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-07-04 16:01:16 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2023-07-20 11:33:49 -0700
commit34732e8560a3fea72bab9f2c9840897faa4f55b5 (patch)
tree0c965eb3f105dba15e765274bade0805cbb67ff3 /tests/codegen/slice-iter-len-eq-zero.rs
parent06a53ddc0bd3a50f9bcf2f7c373011dc7869f59f (diff)
downloadrust-34732e8560a3fea72bab9f2c9840897faa4f55b5.tar.gz
rust-34732e8560a3fea72bab9f2c9840897faa4f55b5.zip
Get `!nonnull` metadata consistently in slice iterators, without needing `assume`s
Diffstat (limited to 'tests/codegen/slice-iter-len-eq-zero.rs')
-rw-r--r--tests/codegen/slice-iter-len-eq-zero.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/slice-iter-len-eq-zero.rs b/tests/codegen/slice-iter-len-eq-zero.rs
index 69f78cea564..efa7b6a9680 100644
--- a/tests/codegen/slice-iter-len-eq-zero.rs
+++ b/tests/codegen/slice-iter-len-eq-zero.rs
@@ -9,8 +9,8 @@ type Demo = [u8; 3];
 #[no_mangle]
 pub fn slice_iter_len_eq_zero(y: std::slice::Iter<'_, Demo>) -> bool {
     // CHECK-NOT: sub
-    // CHECK: %_0 = icmp eq {{i8\*|ptr}} {{%1|%0}}, {{%1|%0}}
-    // CHECK: ret i1 %_0
+    // CHECK: %[[RET:.+]] = icmp eq {{i8\*|ptr}} {{%1|%0}}, {{%1|%0}}
+    // CHECK: ret i1 %[[RET]]
     y.len() == 0
 }