mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[silgen] Change ManagedValue::copyInto to have same paramter order as ManagedValue::{forward,assign}Into.
ManagedValue::{forward,assign}Into both have the signature SILGenFunction &,
SILLocation, SILValue. For some reason copyInto has SILLocation and SILValue
swapped. This commit standardizes copyInto to match the others.
This commit is contained in:
@@ -1813,7 +1813,7 @@ makeBaseConsumableMaterializedRValue(SILGenFunction &SGF,
|
||||
if (!base.getType().isAddress() || isBorrowed) {
|
||||
auto tmp = SGF.emitTemporaryAllocation(loc, base.getType());
|
||||
if (isBorrowed)
|
||||
base.copyInto(SGF, tmp, loc);
|
||||
base.copyInto(SGF, loc, tmp);
|
||||
else
|
||||
base.forwardInto(SGF, loc, tmp);
|
||||
return SGF.emitManagedBufferWithCleanup(tmp);
|
||||
|
||||
Reference in New Issue
Block a user