aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-20 18:07:27 +0000
committerChris Lattner <sabre@nondot.org>2005-08-20 18:07:27 +0000
commitfe0c2c8721fc448fec15e6361d727de70f5f61e2 (patch)
tree6e2edc3140c746c54345bfaa1420ca47c3a89c42
parentffb973df928701146b46d090a69430db2221600f (diff)
fix bogus warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22943 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index 0501473a4d..650242ba55 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -151,7 +151,7 @@ unsigned SimpleSched::Emit(SDOperand Op) {
unsigned SrcReg = cast<RegisterSDNode>(Op.getOperand(1))->getReg();
// Figure out the register class to create for the destreg.
- const TargetRegisterClass *TRC;
+ const TargetRegisterClass *TRC = 0;
if (MRegisterInfo::isVirtualRegister(SrcReg)) {
TRC = RegMap->getRegClass(SrcReg);
} else {