diff options
| -rw-r--r-- | lld/ELF/ScriptParser.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index b123ac13016..967fddd7274 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -150,15 +150,7 @@ bool ScriptParserBase::consume(StringRef Tok) { return true; } -void ScriptParserBase::skip() { - if (Error) - return; - if (atEOF()) { - setError("unexpected EOF"); - return; - } - ++Pos; -} +void ScriptParserBase::skip() { (void)next(); } void ScriptParserBase::expect(StringRef Expect) { if (Error) |

