[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

@@ -199,7 +199,7 @@ public:
if (element.hasCleanup())
element.forwardInto(SGF, loc, elementBuffer);
else
element.copyInto(SGF, elementBuffer, loc);
element.copyInto(SGF, loc, elementBuffer);
}
return SGF.emitManagedRValueWithCleanup(buffer);
}