diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-04-17 22:10:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-04-17 22:10:08 +0000 |
| commit | 916ae0775ebc9bc59198eee6b9ead6f0505a7f45 (patch) | |
| tree | af3eae7b6099d29771b9333ea64c0b0f211da596 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
| parent | 6e5e205841d9f7db2777722eeddb17322f178229 (diff) | |
| download | bcm5719-llvm-916ae0775ebc9bc59198eee6b9ead6f0505a7f45.tar.gz bcm5719-llvm-916ae0775ebc9bc59198eee6b9ead6f0505a7f45.zip | |
Fix handling of calls in functions that use vectors. This fixes a crash on
the code in GCC PR26546.
llvm-svn: 27780
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 30044471d44..b9f50ddbe1c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/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; } |

