Skip to content

Commit dae9a2f

Browse files
committed
tests/codegen-llvm: Make size argument to llvm.lifetime.{start,end} optional in c-variadic-lifetime test
This parameter was removed in LLVM 22 and most tests are updated to make it optional, but apparently this one wasn't updated yet. Signed-off-by: Jens Reidel <[email protected]>
1 parent 52618eb commit dae9a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/codegen-llvm/c-variadic-lifetime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#[unsafe(no_mangle)]
1010
unsafe extern "C" fn variadic(a: f64, mut args: ...) -> f64 {
11-
// CHECK: call void @llvm.lifetime.start.p0(i64 {{[0-9]+}}, ptr nonnull %args)
11+
// CHECK: call void @llvm.lifetime.start.p0({{(i64 [0-9]+, )?}}ptr nonnull %args)
1212
// CHECK: call void @llvm.va_start.p0(ptr nonnull %args)
1313

1414
let b = args.arg::<f64>();
@@ -17,5 +17,5 @@ unsafe extern "C" fn variadic(a: f64, mut args: ...) -> f64 {
1717
a + b + c
1818

1919
// CHECK: call void @llvm.va_end.p0(ptr nonnull %args)
20-
// CHECK: call void @llvm.lifetime.end.p0(i64 {{[0-9]+}}, ptr nonnull %args)
20+
// CHECK: call void @llvm.lifetime.end.p0({{(i64 [0-9]+, )?}}ptr nonnull %args)
2121
}

0 commit comments

Comments
 (0)