Skip to content

Commit 23177b1

Browse files
committed
Merge from mainline.
Trivial patch to fix two warnings llvm-svn: 46272
1 parent 7ae6b34 commit 23177b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/Mips/MipsRegisterInfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ emitPrologue(MachineFunction &MF) const
292292
FPOffset = NumBytes;
293293
RAOffset = 0;
294294
NumBytes += 4;
295+
} else {
296+
// No calls and no fp.
297+
RAOffset = FPOffset = 0;
295298
}
296299

297300
MFI->setObjectOffset(MFI->CreateStackObject(4,4), FPOffset);

0 commit comments

Comments
 (0)