Index: include/llvm/Analysis/DependenceAnalysis.h =================================================================== --- include/llvm/Analysis/DependenceAnalysis.h +++ include/llvm/Analysis/DependenceAnalysis.h @@ -71,6 +71,7 @@ class Dependence { protected: Dependence(const Dependence &) = default; + Dependence(Dependence &&) = default; public: Dependence(Instruction *Source, @@ -225,7 +226,7 @@ unsigned Levels); FullDependence(FullDependence &&RHS) - : Dependence(RHS), Levels(RHS.Levels), + : Dependence(std::move(RHS)), Levels(RHS.Levels), LoopIndependent(RHS.LoopIndependent), Consistent(RHS.Consistent), DV(std::move(RHS.DV)) {}