aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-06 17:39:10 +0000
committerChris Lattner <sabre@nondot.org>2005-10-06 17:39:10 +0000
commitcf5c79b34fcffdf7f0de72bc693ddcd3e2ec47a6 (patch)
treee259a7983d88c03900beae579b2e6a9348d811dc /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent8a61a7524af19d67bd11f8e7d868ca75efbf5c91 (diff)
silence a bogus GCC warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 55f6a2e4e7..0e071b18ca 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2455,7 +2455,7 @@ ExpandByParts(unsigned NodeOp, SDOperand LHS, SDOperand RHS,
// FIXME: this should be moved to the dag combiner someday.
assert(NodeOp == ISD::ADD_PARTS || NodeOp == ISD::SUB_PARTS);
if (LHSL.getValueType() == MVT::i32) {
- SDOperand LowEl;
+ SDOperand LowEl = SDOperand(0,0);
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(LHSL))
if (C->getValue() == 0)
LowEl = RHSL;