mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 09:25:48 +01:00
Switch allocation of FunctionDefinition to use Ptr (#785)
This commit is contained in:
@@ -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