[clang] Don't redundantly specify the default template argument to `BumpPtrAllocatorImpl` (PR #114857)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 4 11:30:35 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Richard Smith (zygoloid)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/114857.diff
2 Files Affected:
- (modified) clang/lib/AST/ByteCode/DynamicAllocator.h (+1-1)
- (modified) clang/lib/AST/ByteCode/Program.h (+1-1)
``````````diff
diff --git a/clang/lib/AST/ByteCode/DynamicAllocator.h b/clang/lib/AST/ByteCode/DynamicAllocator.h
index 1ed5dc843e4c8c..51829403d73228 100644
--- a/clang/lib/AST/ByteCode/DynamicAllocator.h
+++ b/clang/lib/AST/ByteCode/DynamicAllocator.h
@@ -97,7 +97,7 @@ class DynamicAllocator final {
private:
llvm::DenseMap<const Expr *, AllocationSite> AllocationSites;
- using PoolAllocTy = llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator>;
+ using PoolAllocTy = llvm::BumpPtrAllocator;
PoolAllocTy DescAllocator;
/// Allocates a new descriptor.
diff --git a/clang/lib/AST/ByteCode/Program.h b/clang/lib/AST/ByteCode/Program.h
index 9aabe67b550ec7..c9c3d20f198c6e 100644
--- a/clang/lib/AST/ByteCode/Program.h
+++ b/clang/lib/AST/ByteCode/Program.h
@@ -171,7 +171,7 @@ class Program final {
llvm::DenseMap<const void *, unsigned> NativePointerIndices;
/// Custom allocator for global storage.
- using PoolAllocTy = llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator>;
+ using PoolAllocTy = llvm::BumpPtrAllocator;
/// Descriptor + storage for a global object.
///
``````````
</details>
https://github.com/llvm/llvm-project/pull/114857
More information about the cfe-commits
mailing list