Index: runtime/vm/flow_graph_compiler.cc |
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
index 2a3f9f3450bb298fa52032183d24f25fa2d5ed91..b403bbf7fa677161f9c64a0e3a899e302e8dd51e 100644 |
--- a/runtime/vm/flow_graph_compiler.cc |
+++ b/runtime/vm/flow_graph_compiler.cc |
@@ -644,15 +644,7 @@ void FlowGraphCompiler::VisitBlocks() { |
void FlowGraphCompiler::Bailout(const char* reason) { |
- const Function& function = parsed_function_.function(); |
- Report::MessageF(Report::kBailout, |
- Script::Handle(function.script()), |
- function.token_pos(), |
- Report::AtLocation, |
- "FlowGraphCompiler Bailout: %s %s", |
- String::Handle(function.name()).ToCString(), |
- reason); |
- UNREACHABLE(); |
+ parsed_function_.Bailout("FlowGraphCompiler", reason); |
} |