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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user