From: Chris Lattner Date: Mon, 17 Apr 2006 22:10:08 +0000 (+0000) Subject: Fix handling of calls in functions that use vectors. This fixes a crash on X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=80edfb3af5ed214c5cd7797b37cb3bb024e98cc6;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 30044471d44..b9f50ddbe1c 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; }