Skip to content

Commit

Permalink
[NFC][SandboxVectorizer] Disable default copy CTOR/assigment for Sche…
Browse files Browse the repository at this point in the history
…dBundle. (llvm#121846)

Explicitly disable copy CTOR/assigment for SchedBundle to avoid
acsidentional
usage of default versions that do not handle Nodes copies properly.
A developer will need to implement them once required.
  • Loading branch information
offsake authored Jan 8, 2025
1 parent b8ad6fb commit c438758
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ class SchedBundle {
for (auto *N : this->Nodes)
N->setSchedBundle(*this);
}
/// Copy CTOR (unimplemented).
SchedBundle(const SchedBundle &Other) = delete;
/// Copy Assignment (unimplemented).
SchedBundle &operator=(const SchedBundle &Other) = delete;
~SchedBundle() {
for (auto *N : this->Nodes)
N->clearSchedBundle();
Expand Down

0 comments on commit c438758

Please sign in to comment.