[libcxx-commits] [libcxxabi] [libc++abi] Use `= default; ` for `OutputBuffer`'s destructor (PR #166117)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Nov 2 19:48:42 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxxabi

Author: A. Jiang (frederick-vs-ja)

<details>
<summary>Changes</summary>

This mirrors the change in 4eed68357e4361b3a3aeb349dec2612cfb74c8cc to libcxxabi, which is necessary for fixing CI failure.

---
Full diff: https://github.com/llvm/llvm-project/pull/166117.diff


1 Files Affected:

- (modified) libcxxabi/src/demangle/Utility.h (+1-1) 


``````````diff
diff --git a/libcxxabi/src/demangle/Utility.h b/libcxxabi/src/demangle/Utility.h
index 8829f3fa13a93..76243f5d3280c 100644
--- a/libcxxabi/src/demangle/Utility.h
+++ b/libcxxabi/src/demangle/Utility.h
@@ -81,7 +81,7 @@ class OutputBuffer {
   OutputBuffer(const OutputBuffer &) = delete;
   OutputBuffer &operator=(const OutputBuffer &) = delete;
 
-  virtual ~OutputBuffer() {}
+  virtual ~OutputBuffer() = default;
 
   operator std::string_view() const {
     return std::string_view(Buffer, CurrentPosition);

``````````

</details>


https://github.com/llvm/llvm-project/pull/166117


More information about the libcxx-commits mailing list