diff options
| author | Tim Neumann <timnn@google.com> | 2022-11-04 16:20:42 +0000 |
|---|---|---|
| committer | Tim Neumann <timnn@google.com> | 2022-11-04 17:58:16 +0000 |
| commit | c15cfc91c4567c4f079c2543dd395908f30f4911 (patch) | |
| tree | fb33d77dd43aa91754ec0a6ff739b3b262451327 /src/test/codegen | |
| parent | 47c008e440e59d793c2883f7dd712481dc965045 (diff) | |
| download | rust-c15cfc91c4567c4f079c2543dd395908f30f4911.tar.gz rust-c15cfc91c4567c4f079c2543dd395908f30f4911.zip | |
LLVM 16: Switch to using MemoryEffects
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/ffi-const.rs | 3 | ||||
| -rw-r--r-- | src/test/codegen/ffi-pure.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/test/codegen/ffi-const.rs b/src/test/codegen/ffi-const.rs index d9cfa5429b5..93720503480 100644 --- a/src/test/codegen/ffi-const.rs +++ b/src/test/codegen/ffi-const.rs @@ -7,6 +7,7 @@ pub fn bar() { unsafe { foo() } } extern "C" { // CHECK-LABEL: declare{{.*}}void @foo() // CHECK-SAME: [[ATTRS:#[0-9]+]] - // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}readnone{{.*}} } + // The attribute changed from `readnone` to `memory(none)` with LLVM 16.0. + // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}{{readnone|memory\(none\)}}{{.*}} } #[ffi_const] pub fn foo(); } diff --git a/src/test/codegen/ffi-pure.rs b/src/test/codegen/ffi-pure.rs index 5bdb2ee912a..2ed73581358 100644 --- a/src/test/codegen/ffi-pure.rs +++ b/src/test/codegen/ffi-pure.rs @@ -7,6 +7,7 @@ pub fn bar() { unsafe { foo() } } extern "C" { // CHECK-LABEL: declare{{.*}}void @foo() // CHECK-SAME: [[ATTRS:#[0-9]+]] - // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}readonly{{.*}} } + // The attribute changed from `readonly` to `memory(read)` with LLVM 16.0. + // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}{{readonly|memory\(read\)}}{{.*}} } #[ffi_pure] pub fn foo(); } |
