From: Rui Ueyama Date: Sun, 20 Nov 2016 23:15:56 +0000 (+0000) Subject: Simplify. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60c4e36c7e029624a5b04c044a1c3e78a8fc677d;p=platform%2Fupstream%2Fllvm.git Simplify. NFC. llvm-svn: 287510 --- diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 2f13937..546256b 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(";"); }