Index: runtime/vm/flow_graph_compiler_arm64.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc |
index 359c89c2e53dc935ebd101ac6f0d7dea0f799854..150b19f757e8cab26b648a0dfd37b8493906d284 100644 |
--- a/runtime/vm/flow_graph_compiler_arm64.cc |
+++ b/runtime/vm/flow_graph_compiler_arm64.cc |
@@ -665,7 +665,7 @@ void FlowGraphCompiler::GenerateAssertAssignable(intptr_t token_pos, |
const AbstractType& dst_type, |
const String& dst_name, |
LocationSummary* locs) { |
- ASSERT(Scanner::ValidSourcePosition(token_pos)); |
+ ASSERT(!Token::IsClassifying(token_pos)); |
ASSERT(!dst_type.IsNull()); |
ASSERT(dst_type.IsFinalized()); |
// Assignable check is skipped in FlowGraphBuilder, not here. |