[llvm-commits] [llvm] r58297 - /llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp

Evan Cheng evan.cheng at apple.com
Mon Oct 27 16:29:28 PDT 2008


Author: evancheng
Date: Mon Oct 27 18:29:28 2008
New Revision: 58297

URL: http://llvm.org/viewvc/llvm-project?rev=58297&view=rev
Log:
Silence a bogus compile time warning.

Modified:
    llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp

Modified: llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp?rev=58297&r1=58296&r2=58297&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp (original)
+++ llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp Mon Oct 27 18:29:28 2008
@@ -543,9 +543,9 @@
   // 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.





More information about the llvm-commits mailing list