[clang] [clang][bytecode][NFC] Delete DynamicAllocator copy/move ctors (PR #139710)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 13 04:24:45 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
They should never be needed.
---
Full diff: https://github.com/llvm/llvm-project/pull/139710.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/DynamicAllocator.h (+2)
``````````diff
diff --git a/clang/lib/AST/ByteCode/DynamicAllocator.h b/clang/lib/AST/ByteCode/DynamicAllocator.h
index 51829403d7322..cff09bf4f6a6e 100644
--- a/clang/lib/AST/ByteCode/DynamicAllocator.h
+++ b/clang/lib/AST/ByteCode/DynamicAllocator.h
@@ -59,6 +59,8 @@ class DynamicAllocator final {
public:
DynamicAllocator() = default;
+ DynamicAllocator(DynamicAllocator &) = delete;
+ DynamicAllocator(DynamicAllocator &&) = delete;
~DynamicAllocator();
void cleanup();
``````````
</details>
https://github.com/llvm/llvm-project/pull/139710
More information about the cfe-commits
mailing list