[SIL] NFC: Repack misc CopyAddrInst bits

This commit is contained in:
David Zarzycki
2017-12-16 18:28:11 -05:00
parent b5424c0c17
commit c8a458ed1d
3 changed files with 23 additions and 17 deletions

View File

@@ -849,9 +849,11 @@ StrongPinInst::StrongPinInst(SILDebugLocation Loc, SILValue operand,
CopyAddrInst::CopyAddrInst(SILDebugLocation Loc, SILValue SrcLValue,
SILValue DestLValue, IsTake_t isTakeOfSrc,
IsInitialization_t isInitializationOfDest)
: InstructionBase(Loc), IsTakeOfSrc(isTakeOfSrc),
IsInitializationOfDest(isInitializationOfDest),
Operands(this, SrcLValue, DestLValue) {}
: InstructionBase(Loc), Operands(this, SrcLValue, DestLValue) {
SILInstruction::Bits.CopyAddrInst.IsTakeOfSrc = bool(isTakeOfSrc);
SILInstruction::Bits.CopyAddrInst.IsInitializationOfDest =
bool(isInitializationOfDest);
}
BindMemoryInst *
BindMemoryInst::create(SILDebugLocation Loc, SILValue Base, SILValue Index,