[clang] de18fa1 - Don't redundantly specify the default template argument to `BumpPtrAllocatorImpl` (#114857)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 6 18:45:30 PST 2024
Author: Richard Smith
Date: 2024-11-06T18:45:27-08:00
New Revision: de18fa1ace1cd717da9482a09d0a0db8666f48b7
URL: https://github.com/llvm/llvm-project/commit/de18fa1ace1cd717da9482a09d0a0db8666f48b7
DIFF: https://github.com/llvm/llvm-project/commit/de18fa1ace1cd717da9482a09d0a0db8666f48b7.diff
LOG: Don't redundantly specify the default template argument to `BumpPtrAllocatorImpl` (#114857)
Added:
Modified:
clang/lib/AST/ByteCode/DynamicAllocator.h
clang/lib/AST/ByteCode/Program.h
Removed:
################################################################################
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.
///
More information about the cfe-commits
mailing list