Skip to content

Commit 42a55ab

Browse files
committed
IRGen: Add missing case in IRGenThunk when we pass typed errors directly
rdar://134730970
1 parent db0b5db commit 42a55ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/GenThunk.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ void IRGenThunk::prepareArguments() {
153153
auto &resultSchema = resultTI.nativeReturnValueSchema(IGF.IGM);
154154

155155
if (resultSchema.requiresIndirect() ||
156-
errorSchema.shouldReturnTypedErrorIndirectly()) {
156+
errorSchema.shouldReturnTypedErrorIndirectly() ||
157+
conv.hasIndirectSILResults()) {
157158
auto directTypedErrorAddr = original.takeLast();
158159
IGF.setCalleeTypedErrorResultSlot(Address(directTypedErrorAddr,
159160
errorTI.getStorageType(),

0 commit comments

Comments
 (0)