mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 13:16:46 +00:00
Switch allocation of FunctionDefinition to use Ptr (#785)
This commit is contained in:
1 parent
8b8715e871
commit
5b18f24db0
4 files changed
+11
-10
No files matched your search
@@ -27,7 +27,7 @@ static void AddIntrinsics(std::list<Ptr<const Declaration>>* fs) {
|
||||
IntrinsicExpression::IntrinsicKind::Print),
|
||||
false);
|
||||
auto print = global_arena->New<FunctionDeclaration>(
|
||||
global_arena->RawNew<FunctionDefinition>(
|
||||
global_arena->New<FunctionDefinition>(
|
||||
-1, "Print", std::vector<GenericBinding>(),
|
||||
global_arena->RawNew<TuplePattern>(-1, print_fields),
|
||||
global_arena->RawNew<ExpressionPattern>(
|
||||
|
||||
Reference in new issue
Block a user