Skip to content

Commit 1e35662

Browse files
toppercgithub-actions[bot]
authored andcommitted
Automerge: [CodeGen] Use MCRegister in MachineBasicBlock::liveout_iterator. NFC (#168834)
MachineBasicBlock::liveout_begin() calls this constructor with MCRegisters so this removes an implicit cast.
2 parents 35bc7b3 + 0e54667 commit 1e35662

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/MachineBasicBlock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ class MachineBasicBlock
547547
using pointer = const RegisterMaskPair *;
548548
using reference = const RegisterMaskPair &;
549549

550-
liveout_iterator(const MachineBasicBlock &MBB, MCPhysReg ExceptionPointer,
551-
MCPhysReg ExceptionSelector, bool End)
550+
liveout_iterator(const MachineBasicBlock &MBB, MCRegister ExceptionPointer,
551+
MCRegister ExceptionSelector, bool End)
552552
: ExceptionPointer(ExceptionPointer),
553553
ExceptionSelector(ExceptionSelector), BlockI(MBB.succ_begin()),
554554
BlockEnd(MBB.succ_end()) {
@@ -613,7 +613,7 @@ class MachineBasicBlock
613613
return true;
614614
}
615615

616-
MCPhysReg ExceptionPointer, ExceptionSelector;
616+
MCRegister ExceptionPointer, ExceptionSelector;
617617
const_succ_iterator BlockI;
618618
const_succ_iterator BlockEnd;
619619
livein_iterator LiveRegI;

0 commit comments

Comments
 (0)