Skip to content

Commit d4c27f5

Browse files
committed
[rebranch][test] IRGen: Adjust FileCheck regex for captures(none)
The current regex does not match a ')' inside the argument list. This no longer works because `nocapture` became `captures(none) in 29441e4f5fa5f5c7709f7cf180815ba97f611297 (llvm-project). Use a wildcard regex instead. This is fine because the `unnamed_addr` attribute the test is guarding against can only appear after the argument list.
1 parent d4fb7c7 commit d4c27f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/IRGen/objc_function_merge.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ class Derived : Base {
4343

4444

4545
// Check if the objc methods are not generated with the unnamed_addr attribute.
46-
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC20supportsSecureCodingSbvgZTo"({{[^\)]*}}) #{{[0-9]+}} {
47-
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC6encode4withySo7NSCoderC_tFTo"({{[^\)]*}}) #{{[0-9]+}} {
48-
// CHECK-IR-DAG: define {{.*}} @"$s4test7DerivedC20supportsSecureCodingSbvgZTo"({{[^\)]*}}) #{{[0-9]+}} {
46+
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC20supportsSecureCodingSbvgZTo"({{.*}}) #{{[0-9]+}} {
47+
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC6encode4withySo7NSCoderC_tFTo"({{.*}}) #{{[0-9]+}} {
48+
// CHECK-IR-DAG: define {{.*}} @"$s4test7DerivedC20supportsSecureCodingSbvgZTo"({{.*}}) #{{[0-9]+}} {
4949

5050
let d = Derived(s: "")
5151
if #available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *) {

0 commit comments

Comments
 (0)