summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-11 19:50:50 +0000
committerDan Gohman <gohman@apple.com>2009-12-11 19:50:50 +0000
commit6d306bb32b9eae05e51d8fcaa254949db715fafc (patch)
tree7daf2ef1cec748a64a0c8b70149cc844c14c7e5e /llvm/lib/CodeGen
parentfc51282cbe1bfe03994f44b718339597c9ce4de7 (diff)
downloadbcm5719-llvm-6d306bb32b9eae05e51d8fcaa254949db715fafc.tar.gz
bcm5719-llvm-6d306bb32b9eae05e51d8fcaa254949db715fafc.zip
Fix the result type of SELECT nodes lowered from Select instructions with
aggregate return values. This fixes PR5754. llvm-svn: 91145
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 57d89036a80..2a8b57c7ba5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -2108,7 +2108,7 @@ void SelectionDAGBuilder::visitSelect(User &I) {
for (unsigned i = 0; i != NumValues; ++i)
Values[i] = DAG.getNode(ISD::SELECT, getCurDebugLoc(),
- TrueVal.getValueType(), Cond,
+ TrueVal.getNode()->getValueType(i), Cond,
SDValue(TrueVal.getNode(), TrueVal.getResNo() + i),
SDValue(FalseVal.getNode(), FalseVal.getResNo() + i));
OpenPOWER on IntegriCloud