Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index 4c9027bcb0527501b2903b73db70eb6bab0c2d81..eb848bb1f42e0e8d0c24eda70946d26d2a9b1e18 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -6736,9 +6736,7 @@ String* Parser::ExpectIdentifier(const char* msg) { |
bool Parser::IsLiteral(const char* literal) { |
- const uint8_t* characters = reinterpret_cast<const uint8_t*>(literal); |
- intptr_t len = strlen(literal); |
- return IsIdentifier() && CurrentLiteral()->Equals(characters, len); |
+ return IsIdentifier() && CurrentLiteral()->Equals(literal); |
} |