[lld] r277122 - Remove `continue` at end of a for-loop.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 23:21:06 PDT 2016
Author: ruiu
Date: Fri Jul 29 01:21:06 2016
New Revision: 277122
URL: http://llvm.org/viewvc/llvm-project?rev=277122&view=rev
Log:
Remove `continue` at end of a for-loop.
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=277122&r1=277121&r2=277122&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Jul 29 01:21:06 2016
@@ -186,10 +186,8 @@ LinkerScript<ELFT>::filter(std::vector<O
bool RO = (Cmd->Constraint == ConstraintKind::ReadOnly);
bool RW = (Cmd->Constraint == ConstraintKind::ReadWrite);
- if ((RO && Writable) || (RW && !Writable)) {
+ if ((RO && Writable) || (RW && !Writable))
Sections.erase(It);
- continue;
- }
}
return Sections;
}
More information about the llvm-commits
mailing list