Skip to content

Commit de18fa1

Browse files
authored
Don't redundantly specify the default template argument to BumpPtrAllocatorImpl (#114857)
1 parent 05f87b2 commit de18fa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/AST/ByteCode/DynamicAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class DynamicAllocator final {
9797
private:
9898
llvm::DenseMap<const Expr *, AllocationSite> AllocationSites;
9999

100-
using PoolAllocTy = llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator>;
100+
using PoolAllocTy = llvm::BumpPtrAllocator;
101101
PoolAllocTy DescAllocator;
102102

103103
/// Allocates a new descriptor.

clang/lib/AST/ByteCode/Program.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class Program final {
171171
llvm::DenseMap<const void *, unsigned> NativePointerIndices;
172172

173173
/// Custom allocator for global storage.
174-
using PoolAllocTy = llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator>;
174+
using PoolAllocTy = llvm::BumpPtrAllocator;
175175

176176
/// Descriptor + storage for a global object.
177177
///

0 commit comments

Comments
 (0)