1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 22:42:46 +02:00

silence a bogus GCC warning

llvm-svn: 23646
This commit is contained in:
Chris Lattner 2005-10-06 17:39:10 +00:00
parent 3b848038ab
commit 7709ee0085

View File

@ -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;