[llvm] 0b48f51 - [CodeGen] Disable default copy ctor and copy assignment operator for class Scoreboard
Bing1 Yu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 23:30:32 PDT 2023
Author: Bing1 Yu
Date: 2023-06-07T14:30:23+08:00
New Revision: 0b48f51f0b6ad33c0173fd2edc577bde72341697
URL: https://github.com/llvm/llvm-project/commit/0b48f51f0b6ad33c0173fd2edc577bde72341697
DIFF: https://github.com/llvm/llvm-project/commit/0b48f51f0b6ad33c0173fd2edc577bde72341697.diff
LOG: [CodeGen] Disable default copy ctor and copy assignment operator for class Scoreboard
Reviewed By: pengfei
Differential Revision: https://reviews.llvm.org/D152234
Added:
Modified:
llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h b/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
index cefafe87a17d5..a70acca98a5c4 100644
--- a/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
+++ b/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
@@ -49,7 +49,8 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer {
public:
Scoreboard() = default;
-
+ Scoreboard &operator=(const Scoreboard &other) = delete;
+ Scoreboard(const Scoreboard &other) = delete;
~Scoreboard() {
delete[] Data;
}
More information about the llvm-commits
mailing list