aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/PreAllocSplitting.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-27 23:29:28 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-27 23:29:28 +0000
commit985921e8469f356c357e09744ad515a668f4e411 (patch)
tree1e06c1b8e976149840131d58a6ab8c8a838d15e3 /lib/CodeGen/PreAllocSplitting.cpp
parentc714f1309049b2fd9e4ab68c8a7b480c63a4be0c (diff)
downloadexternal_llvm-985921e8469f356c357e09744ad515a668f4e411.zip
external_llvm-985921e8469f356c357e09744ad515a668f4e411.tar.gz
external_llvm-985921e8469f356c357e09744ad515a668f4e411.tar.bz2
Silence a bogus compile time warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r--lib/CodeGen/PreAllocSplitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp
index 0969440..f3a3ac3 100644
--- a/lib/CodeGen/PreAllocSplitting.cpp
+++ b/lib/CodeGen/PreAllocSplitting.cpp
@@ -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.