Skip to content

Commit

Permalink
Use num_extra_inhabitants_64bit to fix reflect_CheckedContinuation.sw…
Browse files Browse the repository at this point in the history
…ift and

reflect_UnsafeContinuation.swift on non-Darwin platforms.
  • Loading branch information
rjmansfield committed Aug 6, 2024
1 parent 81469eb commit 35fb087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions validation-test/Reflection/reflect_CheckedContinuation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_CheckedContinuation
// RUN: %target-codesign %t/reflect_CheckedContinuation

// RUN: %target-run %target-swift-reflection-test %t/reflect_CheckedContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
// RUN: %target-run %target-swift-reflection-test %t/reflect_CheckedContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize %add_num_extra_inhabitants

// REQUIRES: reflection_test_support
// REQUIRES: executable_test
Expand Down Expand Up @@ -45,7 +45,7 @@ if #available(SwiftStdlib 5.1, *) {
// CHECK-64: Type info:
// CHECK-64-NEXT: (class_instance size=24 alignment=8 stride=24 num_extra_inhabitants=0 bitwise_takable=1
// CHECK-64-NEXT: (field name=cont offset=16
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=2147483647 bitwise_takable=1
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=[[#num_extra_inhabitants_64bit]] bitwise_takable=1
// CHECK-64-NEXT: (field name=canary offset=0
// CHECK-64-NEXT: (reference kind=strong refcounting=native)))))

Expand Down
4 changes: 2 additions & 2 deletions validation-test/Reflection/reflect_UnsafeContinuation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_UnsafeContinuation
// RUN: %target-codesign %t/reflect_UnsafeContinuation

// RUN: %target-run %target-swift-reflection-test %t/reflect_UnsafeContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
// RUN: %target-run %target-swift-reflection-test %t/reflect_UnsafeContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize %add_num_extra_inhabitants

// REQUIRES: reflection_test_support
// REQUIRES: executable_test
Expand Down Expand Up @@ -45,7 +45,7 @@ if #available(SwiftStdlib 5.1, *) {
// CHECK-64: Type info:
// CHECK-64-NEXT: (class_instance size=24 alignment=8 stride=24 num_extra_inhabitants=0 bitwise_takable=1
// CHECK-64-NEXT: (field name=cont offset=16
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=2147483647 bitwise_takable=1
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=[[#num_extra_inhabitants_64bit]] bitwise_takable=1
// CHECK-64-NEXT: (field name=context offset=0
// CHECK-64-NEXT: (reference kind=strong refcounting=native)))))

Expand Down

0 comments on commit 35fb087

Please sign in to comment.