mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
OpaqueValues: support SILGen for copy expr
This doesn't cover AddressLowering of `explicit_copy_value`.
This commit is contained in:
@@ -7323,7 +7323,7 @@ RValue RValueEmitter::visitCopyExpr(CopyExpr *E, SGFContext C) {
|
||||
return RValue(SGF, {optTemp->getManagedAddress()}, subType.getASTType());
|
||||
}
|
||||
|
||||
if (subType.isLoadable(SGF.F)) {
|
||||
if (subType.isLoadable(SGF.F) || !SGF.silConv.useLoweredAddresses()) {
|
||||
ManagedValue mv =
|
||||
SGF.emitRValue(subExpr, SGFContext::AllowImmediatePlusZero)
|
||||
.getAsSingleValue(SGF, subExpr);
|
||||
|
||||
Reference in New Issue
Block a user