about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAugie Fackler <augie@google.com>2024-02-12 16:26:06 -0500
committerNikita Popov <npopov@redhat.com>2024-02-13 10:33:40 +0100
commita6ee72df91093b4615421679471ec61191d503b3 (patch)
tree4f0993de5a058954c58fee8036f0757896ef3d8d
parenta47834ef809274b1ed0a55d064979f238dd58293 (diff)
downloadrust-a6ee72df91093b4615421679471ec61191d503b3.tar.gz
rust-a6ee72df91093b4615421679471ec61191d503b3.zip
tests: LLVM 18 infers an extra noalias here
This test started failing on LLVM 18 after change
61118ffd04aa6d1f9ee92daae4deb28bd975d4ab. As far as I can tell, it's
just good fortune that LLVM is able to sniff out the new noalias here,
and it's correct.
-rw-r--r--tests/codegen/iter-repeat-n-trivial-drop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/iter-repeat-n-trivial-drop.rs b/tests/codegen/iter-repeat-n-trivial-drop.rs
index 0b08e578151..b052d339917 100644
--- a/tests/codegen/iter-repeat-n-trivial-drop.rs
+++ b/tests/codegen/iter-repeat-n-trivial-drop.rs
@@ -47,7 +47,7 @@ pub fn iter_repeat_n_next(it: &mut std::iter::RepeatN<NotCopy>) -> Option<NotCop
 #[no_mangle]
 // CHECK-LABEL: @vec_extend_via_iter_repeat_n
 pub fn vec_extend_via_iter_repeat_n() -> Vec<u8> {
-    // CHECK: %[[ADDR:.+]] = tail call noundef dereferenceable_or_null(1234) ptr @__rust_alloc(i64 noundef 1234, i64 noundef 1)
+    // CHECK: %[[ADDR:.+]] = tail call {{(noalias )?}}noundef dereferenceable_or_null(1234) ptr @__rust_alloc(i64 noundef 1234, i64 noundef 1)
     // CHECK: tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1234) %[[ADDR]], i8 42, i64 1234,
 
     let n = 1234_usize;