diff options
author | Rui Ueyama <ruiu@google.com> | 2016-11-20 23:15:56 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-11-20 23:15:56 +0000 |
commit | 60c4e36c7e029624a5b04c044a1c3e78a8fc677d (patch) | |
tree | 64dfa0b443511f2bdd263cc811c02ad094b67caa | |
parent | 7bed9eec368c743e5bb755dc5058f0a8fb4d087b (diff) | |
download | bcm5719-llvm-60c4e36c7e029624a5b04c044a1c3e78a8fc677d.tar.gz bcm5719-llvm-60c4e36c7e029624a5b04c044a1c3e78a8fc677d.zip |
Simplify. NFC.
llvm-svn: 287510
-rw-r--r-- | lld/ELF/DriverUtils.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 2f139371f06..546256bc969 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -104,11 +104,9 @@ void elf::parseDynamicList(MemoryBufferRef MB) { void run() { while (!atEOF()) { expect("{"); - while (!Error) { + while (!Error && !consume("}")) { Config->DynamicList.push_back(unquote(next())); expect(";"); - if (consume("}")) - break; } expect(";"); } |