mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously, the "bare" linkage of a link entity was used to determine whether to put an async function pointer into the tbd. That did not match the mechanism by which the linkage was determined in IRGen. There, the linkage is the "_effective_" linkage (i.e. the value returned from SILFunction::getEffectiveSymbolLinkage). Here, whether to put the async function pointer corresponding to a class method is determined on the basis of that effective linkage. rdar://problem/73203508
14 lines
436 B
Swift
14 lines
436 B
Swift
// REQUIRES: VENDOR=apple
|
|
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-concurrency -validate-tbd-against-ir=all -module-name test | %FileCheck %s
|
|
|
|
// CHECK: @"$s4test6testityyYFTu" = hidden global %swift.async_func_pointer
|
|
|
|
@asyncHandler
|
|
public func testit() { }
|
|
|
|
// CHECK: @"$s4test1CC1f33_295642D23064661A21CD592AD781409CLLyyYFTu" = global %swift.async_func_pointer
|
|
|
|
open class C {
|
|
private func f() async { }
|
|
}
|