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/MachineBasicBlock.cpp | |
| parent | 9d7b08bd0657688c186b5b3d39512c484e8c37f5 (diff) | |
[MCRegister] Simplify isStackSlot & isPhysicalRegister and delete isPhysical. NFC
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 6272adcf114d..13ece5ed7d1c 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -583,7 +583,7 @@ void MachineBasicBlock::sortUniqueLiveIns() { Register MachineBasicBlock::addLiveIn(MCRegister PhysReg, const TargetRegisterClass *RC) { assert(getParent() && "MBB must be inserted in function"); - assert(PhysReg.isPhysical() && "Expected physreg"); + assert(Register::isPhysicalRegister(PhysReg) && "Expected physreg"); assert(RC && "Register class is required"); assert((isEHPad() || this == &getParent()->front()) && "Only the entry block and landing pads can have physreg live ins"); |
