[SIL] NFC: Repack misc TupleElementAddrInst bits

This commit is contained in:
David Zarzycki
2017-12-17 19:58:24 -05:00
parent cf443ecfcf
commit f0bd535261
2 changed files with 11 additions and 4 deletions

View File

@@ -5246,14 +5246,16 @@ class TupleElementAddrInst
{
friend SILBuilder;
unsigned FieldNo;
TupleElementAddrInst(SILDebugLocation DebugLoc, SILValue Operand,
unsigned FieldNo, SILType ResultTy)
: UnaryInstructionBase(DebugLoc, Operand, ResultTy), FieldNo(FieldNo) {}
: UnaryInstructionBase(DebugLoc, Operand, ResultTy) {
SILInstruction::Bits.TupleElementAddrInst.FieldNo = FieldNo;
}
public:
unsigned getFieldNo() const { return FieldNo; }
unsigned getFieldNo() const {
return SILInstruction::Bits.TupleElementAddrInst.FieldNo;
}
TupleType *getTupleType() const {