[llvm] r198131 - Uninitialized variable (in never taken path) after factoring.
Andrew Trick
atrick at apple.com
Sat Dec 28 14:25:57 PST 2013
Author: atrick
Date: Sat Dec 28 16:25:57 2013
New Revision: 198131
URL: http://llvm.org/viewvc/llvm-project?rev=198131&view=rev
Log:
Uninitialized variable (in never taken path) after factoring.
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=198131&r1=198130&r2=198131&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Sat Dec 28 16:25:57 2013
@@ -2248,7 +2248,7 @@ void GenericSchedulerBase::setPolicy(Can
CurrZone.findMaxLatency(CurrZone.Pending.elements()));
// Compute the critical resource outside the zone.
- unsigned OtherCritIdx;
+ unsigned OtherCritIdx = 0;
unsigned OtherCount =
OtherZone ? OtherZone->getOtherResourceCount(OtherCritIdx) : 0;
More information about the llvm-commits
mailing list