aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-17 22:10:08 +0000
committerChris Lattner <sabre@nondot.org>2006-04-17 22:10:08 +0000
commit80edfb3af5ed214c5cd7797b37cb3bb024e98cc6 (patch)
treef08ab77316cc35ab565f60142b1cea4e4f23d0d7 /lib/CodeGen
parent5edb8d270cd7566514187ec53f8ab3f6bf306965 (diff)
downloadexternal_llvm-80edfb3af5ed214c5cd7797b37cb3bb024e98cc6.zip
external_llvm-80edfb3af5ed214c5cd7797b37cb3bb024e98cc6.tar.gz
external_llvm-80edfb3af5ed214c5cd7797b37cb3bb024e98cc6.tar.bz2
Fix handling of calls in functions that use vectors. This fixes a crash on
the code in GCC PR26546. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 3004447..b9f50dd 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -433,19 +433,7 @@ bool SelectionDAGLegalize::LegalizeAllNodesNotLeadingTo(SDNode *N,
if (OperandsLeadToDest) return true;
// Okay, this node looks safe, legalize it and return false.
- switch (getTypeAction(N->getValueType(0))) {
- case Legal:
- LegalizeOp(SDOperand(N, 0));
- break;
- case Promote:
- PromoteOp(SDOperand(N, 0));
- break;
- case Expand: {
- SDOperand X, Y;
- ExpandOp(SDOperand(N, 0), X, Y);
- break;
- }
- }
+ HandleOp(SDOperand(N, 0));
return false;
}