From cb640964a8b884308cb6ff71ff91251de1607762 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 2 Nov 2016 00:16:43 +0000 Subject: [PATCH] Make a function in a header "inline" instead of "static". llvm-svn: 285775 --- lld/ELF/Memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/Memory.h b/lld/ELF/Memory.h index 6ea6022992c4..077957538db7 100644 --- a/lld/ELF/Memory.h +++ b/lld/ELF/Memory.h @@ -49,7 +49,7 @@ template struct SpecificAlloc : public SpecificAllocBase { // Use this arean if your object have a destructor. // Your destructor will be invoked from freeArena(). -template static T *make(U &&... Args) { +template inline T *make(U &&... Args) { static SpecificAlloc Alloc; return new (Alloc.Alloc.Allocate()) T(std::forward(Args)...); } -- 2.34.1