We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6db2f0 + b008bfc commit a24e7e8Copy full SHA for a24e7e8
lib/SILGen/SILGenConstructor.cpp
@@ -428,7 +428,7 @@ void SILGenFunction::emitEnumConstructor(EnumElementDecl *element) {
428
B.createReturn(ReturnLoc, emitEmptyTuple(Loc));
429
} else {
430
assert(enumTI.isLoadable() || !silConv.useLoweredAddresses());
431
- SILValue result = mv.forward(*this);
+ SILValue result = mv.ensurePlusOne(*this, ReturnLoc).forward(*this);
432
scope.pop();
433
B.createReturn(ReturnLoc, result);
434
}
0 commit comments