Fix a thinko.
authorDuncan Sands <baldrick@free.fr>
Fri, 2 Nov 2007 15:18:06 +0000 (15:18 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 2 Nov 2007 15:18:06 +0000 (15:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43639 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp

index 2c8044c18077872f4743288489408ea7be5fac97..11431ee086193bf0f77a1f6ddac09c943099ffc0 100644 (file)
@@ -783,12 +783,11 @@ void DAGTypeLegalizer::ExpandResult(SDNode *N, unsigned ResNo) {
     // If the target wants to, allow it to lower this itself.
     std::pair<SDOperand,SDOperand> P = TLI.ExpandOperationResult(N, DAG);
     if (P.first.Val) {
-      Lo = P.first;
-      Hi = P.second;
+      SetExpandedOp(SDOperand(N, ResNo), P.first, P.second);
       return;
     }
   }
-  
+
   switch (N->getOpcode()) {
   default:
 #ifndef NDEBUG