diff options
| author | Hans Wennborg <hans@chromium.org> | 2025-01-30 11:18:36 +0100 | 
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2025-01-30 11:22:46 +0100 | 
| commit | 23fb08bb532ed8a9b4947c213ae3fc0862b2b254 (patch) | |
| tree | 8535fdcbf0adda669c8778bd08f30cda0615e4b5 /tests/codegen/function-arguments.rs | |
| parent | e6f12c8b7d8d5c821c32fb2739ea01d1d874c58a (diff) | |
| download | rust-23fb08bb532ed8a9b4947c213ae3fc0862b2b254.tar.gz rust-23fb08bb532ed8a9b4947c213ae3fc0862b2b254.zip | |
LLVM changed the nocapture attribute to captures(none)
This updates RustWrapper.cpp and tests after https://github.com/llvm/llvm-project/pull/123181
Diffstat (limited to 'tests/codegen/function-arguments.rs')
| -rw-r--r-- | tests/codegen/function-arguments.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tests/codegen/function-arguments.rs b/tests/codegen/function-arguments.rs index 503799d3ed2..1a211dfe096 100644 --- a/tests/codegen/function-arguments.rs +++ b/tests/codegen/function-arguments.rs @@ -135,7 +135,7 @@ pub fn mutable_notunpin_borrow(_: &mut NotUnpin) {} #[no_mangle] pub fn notunpin_borrow(_: &NotUnpin) {} -// CHECK: @indirect_struct(ptr noalias nocapture noundef readonly align 4 dereferenceable(32) %_1) +// CHECK: @indirect_struct(ptr noalias{{( nocapture)?}} noundef readonly align 4{{( captures\(none\))?}} dereferenceable(32) %_1) #[no_mangle] pub fn indirect_struct(_: S) {} @@ -198,7 +198,7 @@ pub fn notunpin_box(x: Box<NotUnpin>) -> Box<NotUnpin> { x } -// CHECK: @struct_return(ptr{{( dead_on_unwind)?}} noalias nocapture noundef{{( writable)?}} sret([32 x i8]) align 4 dereferenceable(32){{( %_0)?}}) +// CHECK: @struct_return(ptr{{( dead_on_unwind)?}} noalias{{( nocapture)?}} noundef{{( writable)?}} sret([32 x i8]) align 4{{( captures\(none\))?}} dereferenceable(32){{( %_0)?}}) #[no_mangle] pub fn struct_return() -> S { S { _field: [0, 0, 0, 0, 0, 0, 0, 0] } | 
