[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:
Michael Gottesman
2019-05-15 12:29:51 -07:00
parent 6dd4d06b71
commit dccd6eb0d6
5 changed files with 11 additions and 11 deletions

View File

@@ -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);