| Index: runtime/vm/parser_test.cc
|
| diff --git a/runtime/vm/parser_test.cc b/runtime/vm/parser_test.cc
|
| index 3fff4b860b11c9291cb6b515a41862960bdb93c3..99433c57a6860026872ec8abe62165e10fb16198 100644
|
| --- a/runtime/vm/parser_test.cc
|
| +++ b/runtime/vm/parser_test.cc
|
| @@ -30,11 +30,11 @@ void DumpFunction(const Library& lib, const char* cname, const char* fname) {
|
| LongJump jump;
|
| isolate->set_long_jump_base(&jump);
|
| if (setjmp(*jump.Set()) == 0) {
|
| - ParsedFunction parsed_function(function);
|
| - Parser::ParseFunction(&parsed_function);
|
| - EXPECT(parsed_function.node_sequence() != NULL);
|
| + ParsedFunction* parsed_function = new ParsedFunction(function);
|
| + Parser::ParseFunction(parsed_function);
|
| + EXPECT(parsed_function->node_sequence() != NULL);
|
| printf("Class %s function %s:\n", cname, fname);
|
| - AstPrinter::PrintFunctionNodes(parsed_function);
|
| + AstPrinter::PrintFunctionNodes(*parsed_function);
|
| retval = true;
|
| } else {
|
| retval = false;
|
|
|