Revert "Remove the explicit SDNodeIterator::operator= in favor of the implicit default"
[oota-llvm.git] / lib / CodeGen / SelectionDAG / DAGCombiner.cpp
index c7a9df543a039e98105f4ff17378786a8db82c03..9e2b5afde1e6b7f90b8329e1b4be18c90492022b 100644 (file)
@@ -9115,6 +9115,9 @@ struct LoadedSlice {
               unsigned Shift = 0, SelectionDAG *DAG = nullptr)
       : Inst(Inst), Origin(Origin), Shift(Shift), DAG(DAG) {}
 
+  LoadedSlice(const LoadedSlice &LS)
+      : Inst(LS.Inst), Origin(LS.Origin), Shift(LS.Shift), DAG(LS.DAG) {}
+
   /// \brief Get the bits used in a chunk of bits \p BitWidth large.
   /// \return Result is \p BitWidth and has used bits set to 1 and
   ///         not used bits set to 0.