Skip to content

Commit c438758

Browse files
authored
[NFC][SandboxVectorizer] Disable default copy CTOR/assigment for SchedBundle. (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.
1 parent b8ad6fb commit c438758

File tree

1 file changed

+4
-0
lines changed
  • llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer

1 file changed

+4
-0
lines changed

llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h

+4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ class SchedBundle {
7979
for (auto *N : this->Nodes)
8080
N->setSchedBundle(*this);
8181
}
82+
/// Copy CTOR (unimplemented).
83+
SchedBundle(const SchedBundle &Other) = delete;
84+
/// Copy Assignment (unimplemented).
85+
SchedBundle &operator=(const SchedBundle &Other) = delete;
8286
~SchedBundle() {
8387
for (auto *N : this->Nodes)
8488
N->clearSchedBundle();

0 commit comments

Comments
 (0)