projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
849ecb1
)
Pacify the compiler. BestWeight cannot in fact be used uninitialized
author
Duncan Sands
<baldrick@free.fr>
Tue, 28 Dec 2010 10:07:15 +0000
(10:07 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Tue, 28 Dec 2010 10:07:15 +0000
(10:07 +0000)
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
lib/CodeGen/RegAllocGreedy.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegAllocGreedy.cpp
b/lib/CodeGen/RegAllocGreedy.cpp
index 54ccbf4a0560f219bee3b7d28c4bfdb8882752fd..178d468c572ce7af36e3d8421bfcd9b7f2aadc08 100644
(file)
--- a/
lib/CodeGen/RegAllocGreedy.cpp
+++ b/
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()) {