Skip to content

Commit 77a8338

Browse files
committed
[ARC] Update code after removal of Register::isStackSlot. NFC
1 parent 92ddbbd commit 77a8338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARC/ARCOptAddrMode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ MachineInstr *ARCOptAddrMode::tryToCombine(MachineInstr &Ldst) {
216216
}
217217

218218
Register B = Base.getReg();
219-
if (Register::isStackSlot(B) || !Register::isVirtualRegister(B)) {
219+
if (B.isStackSlot() || !B.isVirtual()) {
220220
LLVM_DEBUG(dbgs() << "[ABAW] Base is not VReg\n");
221221
return nullptr;
222222
}

0 commit comments

Comments
 (0)