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(
|
} else if (accessor && requiresFeatureCoroutineAccessors(
|
||||||
accessor->getAccessorKind())) {
|
accessor->getAccessorKind())) {
|
||||||
ptr = llvm::ConstantExpr::getBitCast(
|
ptr = llvm::ConstantExpr::getBitCast(
|
||||||
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
|
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
|
||||||
IGM.FunctionPtrTy);
|
IGM.FunctionPtrTy);
|
||||||
} else {
|
} else {
|
||||||
ptr = llvm::ConstantExpr::getBitCast(IGM.getDeletedMethodErrorFn(),
|
ptr = llvm::ConstantExpr::getBitCast(IGM.getDeletedMethodErrorFn(),
|
||||||
|
|||||||
@@ -1678,7 +1678,7 @@ public:
|
|||||||
IGM.FunctionPtrTy);
|
IGM.FunctionPtrTy);
|
||||||
} else if (isCalleeAllocatedCoroutineRequirement) {
|
} else if (isCalleeAllocatedCoroutineRequirement) {
|
||||||
witness = llvm::ConstantExpr::getBitCast(
|
witness = llvm::ConstantExpr::getBitCast(
|
||||||
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
|
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
|
||||||
IGM.CoroFunctionPointerPtrTy);
|
IGM.CoroFunctionPointerPtrTy);
|
||||||
} else {
|
} else {
|
||||||
witness = llvm::ConstantExpr::getBitCast(
|
witness = llvm::ConstantExpr::getBitCast(
|
||||||
|
|||||||
@@ -1233,9 +1233,9 @@ llvm::Constant *IRGenModule::getDeletedAsyncMethodErrorAsyncFunctionPointer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
llvm::Constant *IRGenModule::
|
llvm::Constant *IRGenModule::
|
||||||
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer() {
|
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer() {
|
||||||
return getAddrOfLLVMVariableOrGOTEquivalent(
|
return getAddrOfLLVMVariableOrGOTEquivalent(
|
||||||
LinkEntity::forKnownAsyncFunctionPointer(
|
LinkEntity::forKnownCoroFunctionPointer(
|
||||||
"swift_deletedCalleeAllocatedCoroutineMethodError"))
|
"swift_deletedCalleeAllocatedCoroutineMethodError"))
|
||||||
.getValue();
|
.getValue();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1537,7 +1537,7 @@ public:
|
|||||||
llvm::AttributeList getAllocAttrs();
|
llvm::AttributeList getAllocAttrs();
|
||||||
llvm::Constant *getDeletedAsyncMethodErrorAsyncFunctionPointer();
|
llvm::Constant *getDeletedAsyncMethodErrorAsyncFunctionPointer();
|
||||||
llvm::Constant *
|
llvm::Constant *
|
||||||
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer();
|
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
llvm::Constant *EmptyTupleMetadata = nullptr;
|
llvm::Constant *EmptyTupleMetadata = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user