[LoopNest] Fix Wdeprecated-copy warnings
authorWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 8 Jun 2021 14:46:20 +0000 (14:46 +0000)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 8 Jun 2021 14:48:13 +0000 (14:48 +0000)
error: definition of implicit copy constructor for 'LoopNest' is
deprecated because it has a user-declared copy assignment operator
[-Werror,-Wdeprecated-copy]
  LoopNest &operator=(const LoopNest &) = delete;

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D103752

llvm/include/llvm/Analysis/LoopNestAnalysis.h

index e045419f8d537dff7db79c2f2a26050ca412093b..9a749a1c8eae197a5b9380c2a8cc6c9d8c88a450 100644 (file)
@@ -30,7 +30,6 @@ public:
   LoopNest(Loop &Root, ScalarEvolution &SE);
 
   LoopNest() = delete;
-  LoopNest &operator=(const LoopNest &) = delete;
 
   /// Construct a LoopNest object.
   static std::unique_ptr<LoopNest> getLoopNest(Loop &Root, ScalarEvolution &SE);