Add Ptr and RawNew for migration (#751)

Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
Jon MeowandGeoff Romer authored and GitHub committed 2021-08-17 13:37:29 -07:00
1 parent 1eeaa208f2
commit c6ebe0db67
14 files changed
+471 -381

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ auto ExpressionFromParenContents(
auto TupleExpressionFromParenContents(
int line_num, const ParenContents<Expression>& paren_contents)
-> const Expression* {
return global_arena->New<TupleLiteral>(
return global_arena->RawNew<TupleLiteral>(
line_num, paren_contents.TupleElements<FieldInitializer>(line_num));
}