diff options
author | Duncan Sands <baldrick@free.fr> | 2010-12-28 10:07:15 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-12-28 10:07:15 +0000 |
commit | 496770debc1681bfd8518d1f3d58611dce8b7a63 (patch) | |
tree | 2bd0c3067ad6228ad66b06eefe4d2ade81b0ef08 /llvm/lib/CodeGen/RegAllocGreedy.cpp | |
parent | 3784c5ea3c4783f482ca81867adc3d91bcb75fa1 (diff) | |
download | bcm5719-llvm-496770debc1681bfd8518d1f3d58611dce8b7a63.tar.gz bcm5719-llvm-496770debc1681bfd8518d1f3d58611dce8b7a63.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 54ccbf4a056..178d468c572 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -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()) { |