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.
2 parents 4c38ec5 + 4a515c6 commit d89ffe7Copy full SHA for d89ffe7
lib/TBDGen/TBDGen.cpp
@@ -721,7 +721,7 @@ void TBDGenVisitor::visitAbstractFunctionDecl(AbstractFunctionDecl *AFD) {
721
722
visitDefaultArguments(AFD, AFD->getParameters());
723
724
- if (AFD->isAsyncContext()) {
+ if (AFD->hasAsync()) {
725
addSymbol(LinkEntity::forAsyncFunctionPointer(AFD));
726
}
727
test/TBD/async-function-pointer.swift
@@ -0,0 +1,7 @@
1
+// REQUIRES: VENDOR=apple
2
+// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-concurrency -validate-tbd-against-ir=all -module-name test | %FileCheck %s
3
+
4
+// CHECK: @"$s4test6testityyYFAD" = hidden global %swift.async_func_pointer
5
6
+@asyncHandler
7
+public func testit() { }
0 commit comments