aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-01-26 18:33:51 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-01-26 18:33:51 +0000
commitb964f3387350184431f90f14050be943236c8fcd (patch)
tree6f470b4a38e5e04789ec9e3f92e3f0f12b5f4dd4 /lib
parent544526885b1c9784d892e8f6234136780600264e (diff)
downloadexternal_llvm-b964f3387350184431f90f14050be943236c8fcd.zip
external_llvm-b964f3387350184431f90f14050be943236c8fcd.tar.gz
external_llvm-b964f3387350184431f90f14050be943236c8fcd.tar.bz2
Silence a bogus compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 e99c70c..16a9e6d 100644
--- a/lib/CodeGen/PreAllocSplitting.cpp
+++ b/lib/CodeGen/PreAllocSplitting.cpp
@@ -1238,7 +1238,7 @@ bool PreAllocSplitting::SplitRegLiveInterval(LiveInterval *LI) {
}
// Find a point to restore the value after the barrier.
- unsigned RestoreIndex;
+ unsigned RestoreIndex = 0;
MachineBasicBlock::iterator RestorePt =
findRestorePoint(BarrierMBB, Barrier, LR->end, RefsInMBB, RestoreIndex);
if (RestorePt == BarrierMBB->end())