| Index: src/IceDefs.h
|
| diff --git a/src/IceDefs.h b/src/IceDefs.h
|
| index f5147c668c5afc86c99dfc8e8f576567a807db8f..584e05986b5524b461428a9e21b319f0d638c80f 100644
|
| --- a/src/IceDefs.h
|
| +++ b/src/IceDefs.h
|
| @@ -58,10 +58,11 @@ class Variable;
|
| class VariableDeclaration;
|
| class VariablesMetadata;
|
|
|
| -typedef llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 1024 * 1024>
|
| -ArenaAllocator;
|
| +template <size_t SlabSize = 1024 * 1024>
|
| +using ArenaAllocator =
|
| + llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, SlabSize>;
|
|
|
| -ArenaAllocator *getCurrentCfgAllocator();
|
| +ArenaAllocator<> *getCurrentCfgAllocator();
|
|
|
| template <typename T> struct CfgLocalAllocator {
|
| using value_type = T;
|
|
|