commit | ed94271350b2e9c846954de58802a8e6893eb479 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Fri Jul 29 06:21:06 2016 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Fri Jul 29 06:21:06 2016 +0000 |
tree | 280020aa3d1583d3dfc50a0bc8f836f73577fe90 | |
parent | f71caa2b49cedf68d2237bb5f7600614ccef1a39 [diff] [blame] |
Remove `continue` at end of a for-loop. llvm-svn: 277122
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 97fa471..f460d2b 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp
@@ -186,10 +186,8 @@ 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; }