[test] IRGen: Adjust FileCheck pattern for nocapture refactoring in upstream LLVM

The current pattern does not match a ')' inside the argument list. This
will no longer work because `nocapture` became `captures(none) in
29441e4f5fa5f5c7709f7cf180815ba97f611297 (llvm-project).

Use a wildcard regex instead. Doing so does not compromise the test
because the `unnamed_addr` attribute we are guarding against can appear
only after the argument list.

This is intended to reduce future conflicts with rebranch.
This commit is contained in:
Anthony Latsis
2025-04-30 01:36:47 +01:00
parent 17fc00f8a7
commit d57f78eeb3

View File

@@ -43,9 +43,9 @@ class Derived : Base {
// Check if the objc methods are not generated with the unnamed_addr attribute.
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC20supportsSecureCodingSbvgZTo"({{[^\)]*}}) #{{[0-9]+}} {
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC6encode4withySo7NSCoderC_tFTo"({{[^\)]*}}) #{{[0-9]+}} {
// CHECK-IR-DAG: define {{.*}} @"$s4test7DerivedC20supportsSecureCodingSbvgZTo"({{[^\)]*}}) #{{[0-9]+}} {
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC20supportsSecureCodingSbvgZTo"({{.*}}) #{{[0-9]+}} {
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC6encode4withySo7NSCoderC_tFTo"({{.*}}) #{{[0-9]+}} {
// CHECK-IR-DAG: define {{.*}} @"$s4test7DerivedC20supportsSecureCodingSbvgZTo"({{.*}}) #{{[0-9]+}} {
let d = Derived(s: "")
if #available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *) {