Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index 6f34a4668574a1b32bfa88d05ac4358e6f6a2314..bd0766772282199d0ecb66842c6d4865270fea02 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -4594,15 +4594,7 @@ void FlowGraphBuilder::PruneUnreachable() { |
void FlowGraphBuilder::Bailout(const char* reason) const { |
- const Function& function = parsed_function_.function(); |
- Report::MessageF(Report::kBailout, |
- Script::Handle(function.script()), |
- function.token_pos(), |
- Report::AtLocation, |
- "FlowGraphBuilder Bailout: %s %s", |
- String::Handle(function.name()).ToCString(), |
- reason); |
- UNREACHABLE(); |
+ parsed_function_.Bailout("FlowGraphBuilder", reason); |
} |
} // namespace dart |