[llvm-commits] [llvm] r46243 - /llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
Chris Lattner
sabre at nondot.org
Mon Jan 21 20:47:48 PST 2008
Author: lattner
Date: Mon Jan 21 22:47:47 2008
New Revision: 46243
URL: http://llvm.org/viewvc/llvm-project?rev=46243&view=rev
Log:
Trivial patch to fix two warnings, please pull into llvm 2.2
Modified:
llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp?rev=46243&r1=46242&r2=46243&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp Mon Jan 21 22:47:47 2008
@@ -292,6 +292,9 @@
FPOffset = NumBytes;
RAOffset = 0;
NumBytes += 4;
+ } else {
+ // No calls and no fp.
+ RAOffset = FPOffset = 0;
}
MFI->setObjectOffset(MFI->CreateStackObject(4,4), FPOffset);
More information about the llvm-commits
mailing list