diff options
| author | Fangrui Song <i@maskray.me> | 2020-10-08 22:08:13 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2020-10-08 22:08:33 -0700 |
| commit | 2c4c2dc2d95aa7239cd59f8fa251fd336aeac87d (patch) | |
| tree | fa56b2970f8df83e554fe5cdd8cc1b3ca2bd8a7f /llvm/lib/CodeGen/MachineOperand.cpp | |
| parent | 9d7b08bd0657688c186b5b3d39512c484e8c37f5 (diff) | |
[MCRegister] Simplify isStackSlot & isPhysicalRegister and delete isPhysical. NFC
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineOperand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
