Remove unnecessary copying or replace it with moves in a bunch of places.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / LegalizeDAG.cpp
index dd932ebd80e80b02848df8d9e42a6028f50ab148..95825e6571e9a54573ab3d1bb87f12471ac4136d 100644 (file)
@@ -1881,7 +1881,8 @@ ExpandBVWithShuffles(SDNode *Node, SelectionDAG &DAG,
                                          ShuffleVec.data());
         else if (!TLI.isShuffleMaskLegal(ShuffleVec, VT))
           return false;
-        NewIntermedVals.push_back(std::make_pair(Shuffle, FinalIndices));
+        NewIntermedVals.push_back(
+            std::make_pair(Shuffle, std::move(FinalIndices)));
       }
 
       // If we had an odd number of defined values, then append the last