diff options
Diffstat (limited to 'parser/ast.h')
-rw-r--r-- | parser/ast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/ast.h b/parser/ast.h index aa98ee4db..d98497649 100644 --- a/parser/ast.h +++ b/parser/ast.h @@ -862,7 +862,7 @@ struct QEnumsAST : public DeclarationAST template <class _Tp> _Tp *CreateNode(pool *memory_pool) { - _Tp *node = reinterpret_cast<_Tp*>(memory_pool->allocate(sizeof(_Tp))); + _Tp *node = reinterpret_cast<_Tp*>(memory_pool->allocate(sizeof(_Tp), strideof(_Tp))); node->kind = _Tp::__node_kind; return node; } |