[llvm-commits] [llvm] r132355 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Tue May 31 13:25:26 PDT 2011
Author: bruno
Date: Tue May 31 15:25:26 2011
New Revision: 132355
URL: http://llvm.org/viewvc/llvm-project?rev=132355&view=rev
Log:
Fix uninitialized variables and silence warnings
Modified:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=132355&r1=132354&r2=132355&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Tue May 31 15:25:26 2011
@@ -763,7 +763,7 @@
// prevent MachineLICM pass to hoist "or" instruction out of the block
// loopMBB.
- int fi;
+ int fi = 0;
if (BinOpcode == 0 && !Nand) {
// Get or create a temporary stack location.
MipsFunctionInfo *MipsFI = MF->getInfo<MipsFunctionInfo>();
@@ -897,7 +897,8 @@
BuildMI(BB, dl, TII->get(Mips::ANDi), Tmp5).addReg(Tmp4).addImm(MaskImm);
BuildMI(BB, dl, TII->get(Mips::SLL), Incr2).addReg(Tmp5).addReg(Shift);
}
- int fi;
+
+ int fi = 0;
if (BinOpcode == 0 && !Nand) {
// Get or create a temporary stack location.
MipsFunctionInfo *MipsFI = MF->getInfo<MipsFunctionInfo>();
More information about the llvm-commits
mailing list