diff options
-rw-r--r-- | lld/ELF/Memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Memory.h b/lld/ELF/Memory.h index 6ea6022992c..077957538db 100644 --- a/lld/ELF/Memory.h +++ b/lld/ELF/Memory.h @@ -49,7 +49,7 @@ template <class T> struct SpecificAlloc : public SpecificAllocBase { // Use this arean if your object have a destructor. // Your destructor will be invoked from freeArena(). -template <typename T, typename... U> static T *make(U &&... Args) { +template <typename T, typename... U> inline T *make(U &&... Args) { static SpecificAlloc<T> Alloc; return new (Alloc.Alloc.Allocate()) T(std::forward<U>(Args)...); } |