silence a warning
authorChris Lattner <sabre@nondot.org>
Sun, 2 Oct 2005 16:27:59 +0000 (16:27 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Oct 2005 16:27:59 +0000 (16:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23593 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/InstrSched/SchedGraph.cpp

index 0a691cd25ac03199a93ffe4db33a0a28ad6d703b..d9a30c2d31759b501140caf465d5b4495bf14333 100644 (file)
@@ -503,7 +503,7 @@ void SchedGraph::findDefUseInfoAtInstr(const TargetMachine& target,
       // (only if the node is not already on the callDepVec!)
       if (callDepNodeVec.size() == 0 || callDepNodeVec.back() != node)
         {
-          unsigned rcid;
+          unsigned rcid = 0;
           int regInClass = target.getRegInfo()->getClassRegNum(regNum, rcid);
           if (target.getRegInfo()->getMachineRegClass(rcid)
               ->isRegVolatile(regInClass))