diff options
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
| -rw-r--r-- | lld/ELF/ScriptParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 29dec116ce8..e23a70dffd0 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -450,7 +450,7 @@ void ScriptParser::readSections() { } if (!atEOF() && consume("INSERT")) { - consume("AFTER"); + expect("AFTER"); std::vector<BaseCommand *> &Dest = Script->InsertAfterCommands[next()]; Dest.insert(Dest.end(), V.begin(), V.end()); return; |

