aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/InstrSched/SchedGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-02 16:27:59 +0000
committerChris Lattner <sabre@nondot.org>2005-10-02 16:27:59 +0000
commit123557fcf0680708f674d035fb0a31e6d4277811 (patch)
treed68f21f84f239dc6ba97b11284a0087a52818437 /lib/Target/SparcV9/InstrSched/SchedGraph.cpp
parentdff06f4348878838eb9edc7414dec7c485aec3c3 (diff)
silence a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/InstrSched/SchedGraph.cpp')
-rw-r--r--lib/Target/SparcV9/InstrSched/SchedGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp
index 0a691cd25a..d9a30c2d31 100644
--- a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp
+++ b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp
@@ -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))