summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-10-08 22:08:13 -0700
committerFangrui Song <i@maskray.me>2020-10-08 22:08:33 -0700
commit2c4c2dc2d95aa7239cd59f8fa251fd336aeac87d (patch)
treefa56b2970f8df83e554fe5cdd8cc1b3ca2bd8a7f /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent9d7b08bd0657688c186b5b3d39512c484e8c37f5 (diff)
[MCRegister] Simplify isStackSlot & isPhysicalRegister and delete isPhysical. NFC
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp2
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");