[llvm] e6b963b - [MC] Fix M68k build after D148613
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 18 06:00:36 PDT 2023
Author: Jay Foad
Date: 2023-04-18T13:58:40+01:00
New Revision: e6b963bf1e890ac82446c1d119105434092420b5
URL: https://github.com/llvm/llvm-project/commit/e6b963bf1e890ac82446c1d119105434092420b5
DIFF: https://github.com/llvm/llvm-project/commit/e6b963bf1e890ac82446c1d119105434092420b5.diff
LOG: [MC] Fix M68k build after D148613
Added:
Modified:
llvm/lib/Target/M68k/M68kRegisterInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/M68k/M68kRegisterInfo.cpp b/llvm/lib/Target/M68k/M68kRegisterInfo.cpp
index 0ab85cc8ec87..d0cba1880a4d 100644
--- a/llvm/lib/Target/M68k/M68kRegisterInfo.cpp
+++ b/llvm/lib/Target/M68k/M68kRegisterInfo.cpp
@@ -76,8 +76,8 @@ unsigned
M68kRegisterInfo::getMatchingMegaReg(unsigned Reg,
const TargetRegisterClass *RC) const {
for (MCPhysReg Super : superregs(Reg))
- if (RC->contains(*Super))
- return *Super;
+ if (RC->contains(Super))
+ return Super;
return 0;
}
@@ -130,7 +130,7 @@ BitVector M68kRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
Reserved.set(*I);
}
for (MCPhysReg I : subregs_inclusive(Reg)) {
- Reserved.set(*I);
+ Reserved.set(I);
}
};
More information about the llvm-commits
mailing list