Revert "[LoopNest] Fix Wdeprecated-copy warnings"
authorWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 8 Jun 2021 20:44:57 +0000 (20:44 +0000)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 8 Jun 2021 20:46:12 +0000 (20:46 +0000)
This reverts commit dee1f0cb348b0a56375d9b563fb4d6918c431ed1.

It appears that this change broke the sanitizer-windows bot:
https://lab.llvm.org/buildbot/#/builders/127/builds/12064

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

llvm/include/llvm/Analysis/LoopNestAnalysis.h

index 9a749a1..e045419 100644 (file)
@@ -30,6 +30,7 @@ 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);