diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-05-31 20:25:26 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-05-31 20:25:26 +0000 |
commit | cada2d0966b649b8f04a78f35b9d6d9b4330ce74 (patch) | |
tree | 2968a7c43662aba8e75bd93b45d3d4ce46a03a47 | |
parent | e65e9ee79a4e5398c4777d7d08b7c4675e916b6f (diff) |
Fix uninitialized variables and silence warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132355 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index a94e6d0ff8..f737fd35d9 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -763,7 +763,7 @@ MipsTargetLowering::EmitAtomicBinary(MachineInstr *MI, MachineBasicBlock *BB, // 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 @@ MipsTargetLowering::EmitAtomicBinaryPartword(MachineInstr *MI, 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>(); |