Silence uninitialized variable warning in MipsISelDAGToDAG.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka 2012-06-27 00:49:46 +00:00
parent e3e12450e6
commit e246b52d2b

View File

@ -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();