Skip to content

Commit 562c479

Browse files
authored
Set ObjectFile's assignment operator to also be deleted like its copy constructor (#93072)
Reapply #92942, this time double checking it compiles. @vgvassilev, @compnerd.
1 parent 5057463 commit 562c479

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/Object/ObjectFile.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ class ObjectFile : public SymbolicFile {
302302
public:
303303
ObjectFile() = delete;
304304
ObjectFile(const ObjectFile &other) = delete;
305+
ObjectFile &operator=(const ObjectFile &other) = delete;
305306

306307
uint64_t getCommonSymbolSize(DataRefImpl Symb) const {
307308
Expected<uint32_t> SymbolFlagsOrErr = getSymbolFlags(Symb);

0 commit comments

Comments
 (0)