LegalizeSetCCOperands should legalize the result of ExpandLibCall. Patch by Richard...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 7 Jul 2008 07:18:09 +0000 (07:18 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 7 Jul 2008 07:18:09 +0000 (07:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53169 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 3695580a92b575a169b587a010f968b3ee27da7a..1fa1f3fa2a319fc986ef2ad7cad4f903fc67dc52 100644 (file)
@@ -4743,7 +4743,7 @@ void SelectionDAGLegalize::LegalizeSetCCOperands(SDOperand &LHS,
         Tmp1 = DAG.getNode(ISD::OR, Tmp1.getValueType(), Tmp1, Tmp2);
         Tmp2 = SDOperand();
       }
-      LHS = Tmp1;
+      LHS = LegalizeOp(Tmp1);
       RHS = Tmp2;
       return;
     }