[lld] r277062 - [ELF] - Removed excessive check. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 15:15:44 PDT 2016
Author: grimar
Date: Thu Jul 28 17:15:44 2016
New Revision: 277062
URL: http://llvm.org/viewvc/llvm-project?rev=277062&view=rev
Log:
[ELF] - Removed excessive check. NFC.
Thanks to Rui Ueyama who noticed that.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=277062&r1=277061&r2=277062&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Thu Jul 28 17:15:44 2016
@@ -747,7 +747,7 @@ void ScriptParser::readOutputSectionDesc
expect("{");
while (!Error && !skip("}")) {
- if ((!peek().empty() && peek().startswith("*")) || peek() == "KEEP") {
+ if (peek().startswith("*") || peek() == "KEEP") {
Cmd->Commands.push_back(readInputSectionDescription());
continue;
}
More information about the llvm-commits
mailing list