Index: runtime/vm/profiler_service.cc |
diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc |
index 8b9bee9489e861ece363d122e87e3e01413d9711..e750b2c573ed036de4a197b2490653a12a83d956 100644 |
--- a/runtime/vm/profiler_service.cc |
+++ b/runtime/vm/profiler_service.cc |
@@ -2590,7 +2590,7 @@ const char* ProfileTrieWalker::CurrentToken() { |
return NULL; |
} |
TokenPosition token_pos = pfsp.token_pos(); |
- if (!token_pos.IsReal() && !token_pos.IsSynthetic()) { |
+ if (!token_pos.IsSourcePosition()) { |
// Not a location in a script. |
return NULL; |
} |