Skip to content

Commit 1a1e97c

Browse files
Merge pull request #36163 from varungandhi-apple/vg-tweak-clang-async-check
Change swiftasynccc IRGen check to use alternate API.
2 parents ecc7127 + 755f1e3 commit 1a1e97c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
549549
SwiftCC = llvm::CallingConv::Swift;
550550

551551
bool isAsynCCSupported =
552-
clangASTContext.getTargetInfo().isSwiftAsyncCCSupported();
552+
clangASTContext.getTargetInfo().checkCallingConvention(clang::CC_SwiftAsync)
553+
== clang::TargetInfo::CCCR_OK;
553554
SwiftAsyncCC = (opts.UseAsyncLowering && isAsynCCSupported)
554555
? llvm::CallingConv::SwiftTail
555556
: SwiftCC;

0 commit comments

Comments
 (0)