Revert "Revert "[LoopNest] Fix Wdeprecated-copy warnings""
authorWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 8 Jun 2021 21:47:56 +0000 (21:47 +0000)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 8 Jun 2021 21:51:53 +0000 (21:51 +0000)
This reverts commit 07ef5805abe5d4576eb5528eab63e75505bfd0bd.

The broke of the sanitizer-windows bot:
https://lab.llvm.org/buildbot/#/builders/127/builds/12064
is not caused by the original commit.

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

llvm/include/llvm/Analysis/LoopNestAnalysis.h

index e045419..9a749a1 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);