We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669a49a commit eb5fadcCopy full SHA for eb5fadc
lib/IRGen/Linking.cpp
@@ -457,7 +457,9 @@ std::string LinkEntity::mangleAsString() const {
457
458
case Kind::AsyncFunctionPointerAST: {
459
std::string Result;
460
- Result = mangler.mangleEntity(getDecl());
+ Result =
461
+ SILDeclRef(const_cast<ValueDecl *>(getDecl()), SILDeclRef::Kind::Func)
462
+ .mangle();
463
Result.append("Tu");
464
return Result;
465
}
test/TBD/async-function-pointer.swift
@@ -7,6 +7,10 @@
7
@asyncHandler
8
public func testit() { }
9
10
+// CHECK: @barTu = global %swift.async_func_pointer
11
+@_silgen_name("bar")
12
+public func foo() async {}
13
+
14
// CHECK: @"$s4test1CC1f33_295642D23064661A21CD592AD781409CLLyyYFTu" = global %swift.async_func_pointer
15
16
open class C {
0 commit comments