We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd4da0b commit 0fc6dddCopy full SHA for 0fc6ddd
lld/ELF/ScriptParser.cpp
@@ -613,8 +613,7 @@ SectionClassDesc *ScriptParser::readSectionClassDescription() {
613
if (!script->sectionClasses.insert({CachedHashStringRef(name), desc}).second)
614
setError("section class '" + name + "' already defined");
615
expect("{");
616
- while (!errorCount() && !consume("}")) {
617
- StringRef tok = next();
+ while (auto tok = till("}")) {
618
if (tok == "(" || tok == ")") {
619
setError("expected filename pattern");
620
} else if (peek() == "(") {
0 commit comments