From e246b52d2b02753a0064fb7e984148fff55d2872 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Wed, 27 Jun 2012 00:49:46 +0000 Subject: [PATCH] Silence uninitialized variable warning in MipsISelDAGToDAG.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159243 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsISelDAGToDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/Mips/MipsISelDAGToDAG.cpp b/lib/Target/Mips/MipsISelDAGToDAG.cpp index 9f1c0f6d2f3..c409e570211 100644 --- a/lib/Target/Mips/MipsISelDAGToDAG.cpp +++ b/lib/Target/Mips/MipsISelDAGToDAG.cpp @@ -129,7 +129,7 @@ void MipsDAGToDAGISel::InitGlobalBaseReg(MachineFunction &MF) { const TargetInstrInfo &TII = *MF.getTarget().getInstrInfo(); DebugLoc DL = I != MBB.end() ? I->getDebugLoc() : DebugLoc(); unsigned V0, V1, GlobalBaseReg = MipsFI->getGlobalBaseReg(); - int FI; // should initialize this to some kind of null + int FI = 0; if (!Subtarget.inMips16Mode()) FI= MipsFI->initGlobalRegFI();