Skip to content

Commit d57f78e

Browse files
committed
[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.
1 parent 17fc00f commit d57f78e

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)