Pacify the compiler. BestWeight cannot in fact be used uninitialized

in this function, but the compiler was warning that it might be when
doing a release build.

llvm-svn: 122595
This commit is contained in:
Duncan Sands 2010-12-28 10:07:15 +00:00
parent 3784c5ea3c
commit 496770debc
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ unsigned RAGreedy::trySpillInterferences(LiveInterval &VirtReg,
SmallVectorImpl<LiveInterval*> &NewVRegs) {
NamedRegionTimer T("Spill Interference", TimerGroupName, TimePassesIsEnabled);
unsigned BestPhys = 0;
float BestWeight;
float BestWeight = 0;
Order.rewind();
while (unsigned PhysReg = Order.next()) {