mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 16:56:39 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
849ecb1431
commit
2aea490e16
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user