| Index: runtime/vm/flow_graph_builder.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_builder.cc (revision 10253)
|
| +++ runtime/vm/flow_graph_builder.cc (working copy)
|
| @@ -2714,8 +2714,7 @@
|
| const char* kFormat = "FlowGraphBuilder Bailout: %s %s";
|
| const char* function_name = parsed_function_.function().ToCString();
|
| intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1;
|
| - char* chars = reinterpret_cast<char*>(
|
| - Isolate::Current()->current_zone()->Allocate(len));
|
| + char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
|
| OS::SNPrint(chars, len, kFormat, function_name, reason);
|
| const Error& error = Error::Handle(
|
| LanguageError::New(String::Handle(String::New(chars))));
|
|
|