Skip to content

Commit 65e0f65

Browse files
Merge pull request #80606 from nate-chandler/cherrypick/release/6.2/rdar148760489
6.2: [IRGen] Fix type of deleted coro error func.
2 parents b1286f9 + 926bad2 commit 65e0f65

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4625,7 +4625,7 @@ namespace {
46254625
} else if (accessor && requiresFeatureCoroutineAccessors(
46264626
accessor->getAccessorKind())) {
46274627
ptr = llvm::ConstantExpr::getBitCast(
4628-
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
4628+
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
46294629
IGM.FunctionPtrTy);
46304630
} else {
46314631
ptr = llvm::ConstantExpr::getBitCast(IGM.getDeletedMethodErrorFn(),

lib/IRGen/GenProto.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ class AccessorConformanceInfo : public ConformanceInfo {
16801680
IGM.FunctionPtrTy);
16811681
} else if (isCalleeAllocatedCoroutineRequirement) {
16821682
witness = llvm::ConstantExpr::getBitCast(
1683-
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer(),
1683+
IGM.getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer(),
16841684
IGM.CoroFunctionPointerPtrTy);
16851685
} else {
16861686
witness = llvm::ConstantExpr::getBitCast(

lib/IRGen/IRGenModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,9 +1234,9 @@ llvm::Constant *IRGenModule::getDeletedAsyncMethodErrorAsyncFunctionPointer() {
12341234
}
12351235

12361236
llvm::Constant *IRGenModule::
1237-
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer() {
1237+
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer() {
12381238
return getAddrOfLLVMVariableOrGOTEquivalent(
1239-
LinkEntity::forKnownAsyncFunctionPointer(
1239+
LinkEntity::forKnownCoroFunctionPointer(
12401240
"swift_deletedCalleeAllocatedCoroutineMethodError"))
12411241
.getValue();
12421242
}

lib/IRGen/IRGenModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ class IRGenModule {
15381538
llvm::AttributeList getAllocAttrs();
15391539
llvm::Constant *getDeletedAsyncMethodErrorAsyncFunctionPointer();
15401540
llvm::Constant *
1541-
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer();
1541+
getDeletedCalleeAllocatedCoroutineMethodErrorCoroFunctionPointer();
15421542

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

0 commit comments

Comments
 (0)