diff options
author | Fangrui Song <i@maskray.me> | 2024-07-27 16:52:47 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-07-27 16:52:47 -0700 |
commit | dbd65a07f212c6e85059b12ae3359942fcaee292 (patch) | |
tree | 41f0fe8594a8050a7770f172140e270dd388c2bc /lld/ELF/ScriptParser.cpp | |
parent | 74f843d05f89738fe58170cedfd15496c179f57a (diff) | |
download | llvm-dbd65a07f212c6e85059b12ae3359942fcaee292.zip llvm-dbd65a07f212c6e85059b12ae3359942fcaee292.tar.gz llvm-dbd65a07f212c6e85059b12ae3359942fcaee292.tar.bz2 |
[ELF] OUTPUT_ARCH: report unclosed error
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 bdde862..1b218fc 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -444,7 +444,7 @@ void ScriptParser::readOutput() { void ScriptParser::readOutputArch() { // OUTPUT_ARCH is ignored for now. expect("("); - while (next() != ")" && !atEOF()) + while (till(")")) ; } |