Skip to content

Commit 2c335ee

Browse files
Merge pull request #80556 from nate-chandler/bug/20250404/2
[IRGen] Fix type of deleted coro error func.
2 parents 1f0696a + ce61e2e commit 2c335ee

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/IRGen/GenMeta.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4623,7 +4623,7 @@ namespace {
46234623
} else if (accessor && requiresFeatureCoroutineAccessors(
46244624
accessor->getAccessorKind())) {
46254625
ptr = llvm::ConstantExpr::getBitCast(
4626-
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
4626+
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
46274627
IGM.FunctionPtrTy);
46284628
} else {
46294629
ptr = llvm::ConstantExpr::getBitCast(IGM.getDeletedMethodErrorFn(),

lib/IRGen/GenProto.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ class AccessorConformanceInfo : public ConformanceInfo {
16781678
IGM.FunctionPtrTy);
16791679
} else if (isCalleeAllocatedCoroutineRequirement) {
16801680
witness = llvm::ConstantExpr::getBitCast(
1681-
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
1681+
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
16821682
IGM.CoroFunctionPointerPtrTy);
16831683
} else {
16841684
witness = llvm::ConstantExpr::getBitCast(

lib/IRGen/IRGenModule.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1233,9 +1233,9 @@ llvm::Constant *IRGenModule::getDeletedAsyncMethodErrorAsyncFunctionPointer() {
12331233
}
12341234

12351235
llvm::Constant *IRGenModule::
1236-
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer() {
1236+
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer() {
12371237
return getAddrOfLLVMVariableOrGOTEquivalent(
1238-
LinkEntity::forKnownAsyncFunctionPointer(
1238+
LinkEntity::forKnownCoroFunctionPointer(
12391239
"swift_deletedCalleeAllocatedCoroutineMethodError"))
12401240
.getValue();
12411241
}

lib/IRGen/IRGenModule.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ class IRGenModule {
15371537
llvm::AttributeList getAllocAttrs();
15381538
llvm::Constant *getDeletedAsyncMethodErrorAsyncFunctionPointer();
15391539
llvm::Constant *
1540-
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer();
1540+
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer();
15411541

15421542
private:
15431543
llvm::Constant *EmptyTupleMetadata = nullptr;

0 commit comments

Comments
 (0)