From e50f5d1fb142bcc669858085c4e12c53031a8fb1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 16 Sep 2006 05:08:34 +0000 Subject: Oh yeah, this is needed too llvm-svn: 30407 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 7c7dc437b9e..5e6791f33c9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -4695,9 +4695,9 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){ case ISD::MUL: { // If the target wants to custom expand this, let them. if (TLI.getOperationAction(ISD::MUL, VT) == TargetLowering::Custom) { - Op = TLI.LowerOperation(Op, DAG); - if (Op.Val) { - ExpandOp(Op, Lo, Hi); + SDOperand New = TLI.LowerOperation(Op, DAG); + if (New.Val) { + ExpandOp(New, Lo, Hi); break; } } -- cgit v1.2.3