summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-12-28 22:25:57 +0000
committerAndrew Trick <atrick@apple.com>2013-12-28 22:25:57 +0000
commit7afe48180179bbe20c60803934e5440e50063e18 (patch)
treef34cffe331e70b805aa84e6597c6b680eea6ff1b /llvm/lib/CodeGen
parent8214bf5eef9c3c58fcb7a14e42d65e40e8405b7d (diff)
downloadbcm5719-llvm-7afe48180179bbe20c60803934e5440e50063e18.tar.gz
bcm5719-llvm-7afe48180179bbe20c60803934e5440e50063e18.zip
Uninitialized variable (in never taken path) after factoring.
llvm-svn: 198131
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index eab0eb1bec6..1115b822b66 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -2248,7 +2248,7 @@ void GenericSchedulerBase::setPolicy(CandPolicy &Policy,
CurrZone.findMaxLatency(CurrZone.Pending.elements()));
// Compute the critical resource outside the zone.
- unsigned OtherCritIdx;
+ unsigned OtherCritIdx = 0;
unsigned OtherCount =
OtherZone ? OtherZone->getOtherResourceCount(OtherCritIdx) : 0;
OpenPOWER on IntegriCloud