Index: runtime/vm/flow_graph_compiler_x64.cc |
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc |
index e54b1eb2553ca75e9dbaa70d35ba02c778a34933..30382e6e81dd26cbca8c9ba3aab6572bbee1f2fa 100644 |
--- a/runtime/vm/flow_graph_compiler_x64.cc |
+++ b/runtime/vm/flow_graph_compiler_x64.cc |
@@ -676,7 +676,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. |