Skip to content

Commit 3654d9f

Browse files
committed
add default copy assignment operator to ELFFile for clang-cl warning
1 parent 50a64ef commit 3654d9f

File tree

1 file changed

+3
-1
lines changed
  • llvm/include/llvm/Object

1 file changed

+3
-1
lines changed

llvm/include/llvm/Object/ELF.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ class ELFFile {
256256
public:
257257
LLVM_ELF_IMPORT_TYPES_ELFT(ELFT)
258258

259-
// Default ctor required to instantiate the template for DLL export.
259+
// Default ctor and copy assignment operator required to instantiate the
260+
// template for DLL export.
260261
ELFFile(const ELFFile &) = default;
262+
ELFFile &operator=(const ELFFile &) = default;
261263

262264
// This is a callback that can be passed to a number of functions.
263265
// It can be used to ignore non-critical errors (warnings), which is

0 commit comments

Comments
 (0)