aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-30 17:21:17 +0000
committerChris Lattner <sabre@nondot.org>2005-08-30 17:21:17 +0000
commitcc0675a4be9a5133abd48ee272ff999ae48feabf (patch)
treee6796e3af6b52d9277475e2cb568e854cade111a /lib/CodeGen
parent2501d5e29c13f41fc15c0be5fece011db27c8ab3 (diff)
Fix FreeBench/fourinarow with the dag isel, by not adding a bogus result
to SHIFT_PARTS nodes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index db3b33abc5..758fd2de8d 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2388,10 +2388,7 @@ void SelectionDAGLegalize::ExpandShiftParts(unsigned NodeOp,
Ops.push_back(LHSL);
Ops.push_back(LHSH);
Ops.push_back(Amt);
- std::vector<MVT::ValueType> VTs;
- VTs.push_back(LHSL.getValueType());
- VTs.push_back(LHSH.getValueType());
- VTs.push_back(Amt.getValueType());
+ std::vector<MVT::ValueType> VTs(2, LHSL.getValueType());
Lo = DAG.getNode(NodeOp, VTs, Ops);
Hi = Lo.getValue(1);
}