forked from OSchip/llvm-project
[CodeGen] Use MachineInstr::getOperand(0) instead of gets the defs iterator_range and calling begin. NFC
Defs are well defined to come first in MachineInstr operand list. No need for a more complex indirection. llvm-svn: 332559
This commit is contained in:
parent
a52d30b2bc
commit
342273a139
|
@ -596,7 +596,7 @@ MachineInstr *ImplicitNullChecks::insertFaultingInstr(
|
|||
|
||||
unsigned DefReg = NoRegister;
|
||||
if (NumDefs != 0) {
|
||||
DefReg = MI->defs().begin()->getReg();
|
||||
DefReg = MI->getOperand(0).getReg();
|
||||
assert(NumDefs == 1 && "expected exactly one def!");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue