File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -735,7 +735,7 @@ InstrBuilder::createInstruction(const MCInst &MCI,
735
735
// Skip non-register operands.
736
736
if (!Op.isReg ())
737
737
continue ;
738
- RegID = Op.getReg ();
738
+ RegID = Op.getReg (). id () ;
739
739
} else {
740
740
// Implicit read.
741
741
RegID = RD.RegisterID ;
@@ -800,8 +800,8 @@ InstrBuilder::createInstruction(const MCInst &MCI,
800
800
unsigned WriteIndex = 0 ;
801
801
Idx = 0U ;
802
802
for (const WriteDescriptor &WD : D.Writes ) {
803
- RegID = WD.isImplicitWrite () ? MCRegister ( WD.RegisterID )
804
- : MCI.getOperand (WD.OpIndex ).getReg ();
803
+ RegID = WD.isImplicitWrite () ? WD.RegisterID
804
+ : MCI.getOperand (WD.OpIndex ).getReg (). id () ;
805
805
// Check if this is a optional definition that references NoReg or a write
806
806
// to a constant register.
807
807
if ((WD.IsOptionalDef && !RegID) || MRI.isConstant (RegID)) {
You can’t perform that action at this time.
0 commit comments