mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Match nocapture to succeed both on main and rebranch
Both the syntax and relative order of the LLVM `nocapture` parameter attribute changed upstream in 29441e4f5fa5f5c7709f7cf180815ba97f611297. To reduce conflicts with rebranch, adjust FileCheck patterns to expect both syntaxes and orders anywhere the presence of the attribute is not critical to the test. These changes are temporary and will be cleaned up once rebranch is merged into main.
This commit is contained in:
@@ -14,7 +14,7 @@ func simple(_ placeholder: Int64) throws -> () {
|
||||
// CHECK: define {{.*}}void @"$s8ErrorVar6simpleyys5Int64VKF"(
|
||||
// CHECK-SAME: i64
|
||||
// CHECK-SAME: %swift.refcounted* {{.*}}swiftself
|
||||
// CHECK-SAME: %swift.error** noalias nocapture dereferenceable(4)
|
||||
// CHECK-SAME: %swift.error** noalias {{(nocapture|captures\(none\))}} dereferenceable(4)
|
||||
// CHECK: #dbg_declare
|
||||
// CHECK: #dbg_declare({{.*}}, ![[ERROR:[0-9]+]], !DIExpression(DW_OP_deref)
|
||||
// CHECK-DAG: ![[ERRTY:.*]] = !DICompositeType({{.*}}identifier: "$ss5Error_pD"
|
||||
|
||||
Reference in New Issue
Block a user