mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #80556 from nate-chandler/bug/20250404/2
[IRGen] Fix type of deleted coro error func.
This commit is contained in:
@@ -4623,7 +4623,7 @@ namespace {
|
||||
} else if (accessor && requiresFeatureCoroutineAccessors(
|
||||
accessor->getAccessorKind())) {
|
||||
ptr = llvm::ConstantExpr::getBitCast(
|
||||
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
|
||||
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
|
||||
IGM.FunctionPtrTy);
|
||||
} else {
|
||||
ptr = llvm::ConstantExpr::getBitCast(IGM.getDeletedMethodErrorFn(),
|
||||
|
||||
@@ -1678,7 +1678,7 @@ public:
|
||||
IGM.FunctionPtrTy);
|
||||
} else if (isCalleeAllocatedCoroutineRequirement) {
|
||||
witness = llvm::ConstantExpr::getBitCast(
|
||||
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
|
||||
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
|
||||
IGM.CoroFunctionPointerPtrTy);
|
||||
} else {
|
||||
witness = llvm::ConstantExpr::getBitCast(
|
||||
|
||||
@@ -1233,9 +1233,9 @@ llvm::Constant *IRGenModule::getDeletedAsyncMethodErrorAsyncFunctionPointer() {
|
||||
}
|
||||
|
||||
llvm::Constant *IRGenModule::
|
||||
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer() {
|
||||
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer() {
|
||||
return getAddrOfLLVMVariableOrGOTEquivalent(
|
||||
LinkEntity::forKnownAsyncFunctionPointer(
|
||||
LinkEntity::forKnownCoroFunctionPointer(
|
||||
"swift_deletedCalleeAllocatedCoroutineMethodError"))
|
||||
.getValue();
|
||||
}
|
||||
|
||||
@@ -1537,7 +1537,7 @@ public:
|
||||
llvm::AttributeList getAllocAttrs();
|
||||
llvm::Constant *getDeletedAsyncMethodErrorAsyncFunctionPointer();
|
||||
llvm::Constant *
|
||||
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer();
|
||||
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer();
|
||||
|
||||
private:
|
||||
llvm::Constant *EmptyTupleMetadata = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user