We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d569c commit 5614ff0Copy full SHA for 5614ff0
llvm/lib/Target/SBF/SBFRegisterInfo.cpp
@@ -46,12 +46,14 @@ BitVector SBFRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
46
static void WarnSize(int Offset, MachineFunction &MF, DebugLoc& DL)
47
{
48
static Function *OldMF = nullptr;
49
- if (&(MF.getFunction()) == OldMF) {
50
- return;
51
- }
52
- OldMF = &(MF.getFunction());
53
int MaxOffset = -1 * SBFRegisterInfo::FrameLength;
54
if (Offset <= MaxOffset) {
+
+ if (&(MF.getFunction()) == OldMF) {
+ return;
+ }
55
+ OldMF = &(MF.getFunction());
56
57
if (MF.getSubtarget<SBFSubtarget>().isSolana()) {
58
dbgs() << "Error:";
59
if (DL) {
0 commit comments