Uninitialized variable (in never taken path) after factoring.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2013-12-28 22:25:57 +00:00
parent 6c9712fecb
commit 7d1a69d826

View File

@ -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;