[lld] r287510 - Simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 20 15:15:56 PST 2016
Author: ruiu
Date: Sun Nov 20 17:15:56 2016
New Revision: 287510
URL: http://llvm.org/viewvc/llvm-project?rev=287510&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/DriverUtils.cpp
Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=287510&r1=287509&r2=287510&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Sun Nov 20 17:15:56 2016
@@ -104,11 +104,9 @@ void elf::parseDynamicList(MemoryBufferR
void run() {
while (!atEOF()) {
expect("{");
- while (!Error) {
+ while (!Error && !consume("}")) {
Config->DynamicList.push_back(unquote(next()));
expect(";");
- if (consume("}"))
- break;
}
expect(";");
}
More information about the llvm-commits
mailing list