Skip to content

Commit 755f1e3

Browse files
Change swiftasynccc IRGen check to use alternate API.
1 parent 44ed14e commit 755f1e3

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)