[llvm] [NFC][Target][MC] Fixed rule-of-three for MCFragment/Archive/RegisterTargetPassConfigCallback classes (PR #193470)
Jaydeep Chauhan via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 07:55:41 PDT 2026
================
@@ -339,6 +339,7 @@ class LLVM_ABI Archive : public Binary {
// Explicitly non-copyable.
Archive(Archive const &) = delete;
Archive &operator=(Archive const &) = delete;
+ ~Archive() = default;
----------------
JaydeepChauhan14 wrote:
As per https://en.cppreference.com/cpp/language/rule_of_three this is standard best practice we can follow to prevent unknown crashes and for resource safety. I don't have any crash example for this case.
https://github.com/llvm/llvm-project/pull/193470
More information about the llvm-commits
mailing list