From 2c4c2dc2d95aa7239cd59f8fa251fd336aeac87d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 8 Oct 2020 22:08:13 -0700 Subject: [MCRegister] Simplify isStackSlot & isPhysicalRegister and delete isPhysical. NFC --- llvm/lib/CodeGen/MachineOperand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineOperand.cpp') diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index 76b69dfdcf71..236ed3fb1968 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -85,7 +85,7 @@ void MachineOperand::substVirtReg(Register Reg, unsigned SubIdx, } void MachineOperand::substPhysReg(MCRegister Reg, const TargetRegisterInfo &TRI) { - assert(Reg.isPhysical()); + assert(Register::isPhysicalRegister(Reg)); if (getSubReg()) { Reg = TRI.getSubReg(Reg, getSubReg()); // Note that getSubReg() may return 0 if the sub-register doesn't exist. -- cgit v1.2.3