Oh yeah, this is needed too
authorChris Lattner <sabre@nondot.org>
Sat, 16 Sep 2006 05:08:34 +0000 (05:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 16 Sep 2006 05:08:34 +0000 (05:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30407 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 7c7dc437b9eda2a4721c4f9b414917957e910baf..5e6791f33c9aee64a2162b82f16c8703f81cc35b 100644 (file)
@@ -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;
       }
     }