From fc7e4099cb3efddc3df0b84762b2c704c55f0115 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 19 Nov 2025 22:38:42 -0800 Subject: [PATCH] [CodeGen] Use MCRegister in MachineBasicBlock::liveout_iterator. NFC MachineBasicBlock::liveout_begin() calls this constructor with MCRegisters so this removes an implicit cast. --- llvm/include/llvm/CodeGen/MachineBasicBlock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h index fcf7bab09fcff..a1023d4c32ce4 100644 --- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h +++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h @@ -547,8 +547,8 @@ class MachineBasicBlock using pointer = const RegisterMaskPair *; using reference = const RegisterMaskPair &; - liveout_iterator(const MachineBasicBlock &MBB, MCPhysReg ExceptionPointer, - MCPhysReg ExceptionSelector, bool End) + liveout_iterator(const MachineBasicBlock &MBB, MCRegister ExceptionPointer, + MCRegister ExceptionSelector, bool End) : ExceptionPointer(ExceptionPointer), ExceptionSelector(ExceptionSelector), BlockI(MBB.succ_begin()), BlockEnd(MBB.succ_end()) { @@ -613,7 +613,7 @@ class MachineBasicBlock return true; } - MCPhysReg ExceptionPointer, ExceptionSelector; + MCRegister ExceptionPointer, ExceptionSelector; const_succ_iterator BlockI; const_succ_iterator BlockEnd; livein_iterator LiveRegI;