diff --git a/src/torque/declarations.cc b/src/torque/declarations.cc index 95659dbff2..8de1eb6f3d 100644 --- a/src/torque/declarations.cc +++ b/src/torque/declarations.cc @@ -232,7 +232,8 @@ Macro* Declarations::DeclareMacro(const std::string& name, ReportError(s.str()); } } - return macro_list->AddMacro(new Macro(name, signature)); + return macro_list->AddMacro( + RegisterDeclarable(std::unique_ptr(new Macro(name, signature)))); } Builtin* Declarations::DeclareBuiltin(const std::string& name,