From 60c4e36c7e029624a5b04c044a1c3e78a8fc677d Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sun, 20 Nov 2016 23:15:56 +0000 Subject: [PATCH] Simplify. NFC. llvm-svn: 287510 --- lld/ELF/DriverUtils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(";"); } -- 2.7.4