[llvm] dee1f0c - [LoopNest] Fix Wdeprecated-copy warnings
Whitney Tsang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 8 07:48:22 PDT 2021
Author: Whitney Tsang
Date: 2021-06-08T14:48:13Z
New Revision: dee1f0cb348b0a56375d9b563fb4d6918c431ed1
URL: https://github.com/llvm/llvm-project/commit/dee1f0cb348b0a56375d9b563fb4d6918c431ed1
DIFF: https://github.com/llvm/llvm-project/commit/dee1f0cb348b0a56375d9b563fb4d6918c431ed1.diff
LOG: [LoopNest] Fix Wdeprecated-copy warnings
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
Added:
Modified:
llvm/include/llvm/Analysis/LoopNestAnalysis.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/LoopNestAnalysis.h b/llvm/include/llvm/Analysis/LoopNestAnalysis.h
index e045419f8d537..9a749a1c8eae1 100644
--- a/llvm/include/llvm/Analysis/LoopNestAnalysis.h
+++ b/llvm/include/llvm/Analysis/LoopNestAnalysis.h
@@ -30,7 +30,6 @@ class LoopNest {
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);
More information about the llvm-commits
mailing list