mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: order properties on SwiftAsyncCC to be uniform
Adjust the IRGen to always set the calling convention and then the noexcept bit. This makes it easier to quickly scan through the attributes for the async calls which was useful for some Concurrency related work on Windows.
This commit is contained in:
@@ -330,8 +330,8 @@ llvm::Function *IRGenModule::getAwaitAsyncContinuationFn() {
|
||||
llvm::Value *context = suspendFn->getArg(0);
|
||||
auto *call =
|
||||
Builder.CreateCall(getContinuationAwaitFunctionPointer(), {context});
|
||||
call->setDoesNotThrow();
|
||||
call->setCallingConv(SwiftAsyncCC);
|
||||
call->setDoesNotThrow();
|
||||
call->setTailCallKind(AsyncTailCallKind);
|
||||
|
||||
Builder.CreateRetVoid();
|
||||
|
||||
@@ -2541,8 +2541,8 @@ llvm::Function *IRGenFunction::createAsyncSuspendFn() {
|
||||
auto *suspendCall = Builder.CreateCall(
|
||||
IGM.getTaskSwitchFuncFunctionPointer(),
|
||||
{context, resumeFunction, targetExecutorFirst, targetExecutorSecond});
|
||||
suspendCall->setDoesNotThrow();
|
||||
suspendCall->setCallingConv(IGM.SwiftAsyncCC);
|
||||
suspendCall->setDoesNotThrow();
|
||||
suspendCall->setTailCallKind(IGM.AsyncTailCallKind);
|
||||
|
||||
llvm::AttributeList attrs = suspendCall->getAttributes();
|
||||
|
||||
Reference in New Issue
Block a user