Skip to content

Commit 1917496

Browse files
committed
[CoroutineAccessors] Fall back to DefaultCC.
The fallback should be DefaultCC which is not necessarily SwiftCC.
1 parent 2af30b2 commit 1917496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
629629
if (isCoroCCSupported) {
630630
SwiftCoroCC = llvm::CallingConv::SwiftCoro;
631631
} else {
632-
SwiftCoroCC = llvm::CallingConv::Swift;
632+
SwiftCoroCC = SwiftCC;
633633
}
634634

635635
if (opts.DebugInfoLevel > IRGenDebugInfoLevel::None)

0 commit comments

Comments
 (0)