Silence a bogus compile time warning.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 27 Oct 2008 23:29:28 +0000 (23:29 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 27 Oct 2008 23:29:28 +0000 (23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58297 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PreAllocSplitting.cpp

index 09694403e3f72ff0dd5d8e4f39558c9ca5e75886..f3a3ac30dd1661ec7880b59f6aae64b226c43e2e 100644 (file)
@@ -543,9 +543,9 @@ bool PreAllocSplitting::SplitRegLiveInterval(LiveInterval *LI) {
   // Add a spill either before the barrier or after the definition.
   MachineBasicBlock *DefMBB = DefMI ? DefMI->getParent() : NULL;
   const TargetRegisterClass *RC = MRI->getRegClass(CurrLI->reg);
-  int SS;
   unsigned SpillIndex = 0;
   MachineInstr *SpillMI = NULL;
+  int SS = -1;
   bool PrevSpilled = isAlreadySplit(CurrLI->reg, ValNo->id, SS);
   if (ValNo->def == ~0U) {
     // If it's defined by a phi, we must split just before the barrier.