[PATCH] D37520: [ELF] - Fix removing of unused synthetic sections.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 6 10:12:58 PDT 2017
ruiu added inline comments.
================
Comment at: ELF/Writer.cpp:1204
- std::vector<BaseCommand *>::iterator Empty = OS->Commands.end();
- for (auto I = OS->Commands.begin(), E = OS->Commands.end(); I != E; ++I) {
+ for (auto I = OS->Commands.begin(); I != OS->Commands.end();) {
BaseCommand *B = *I;
----------------
This loop needs a (brief) comment.
https://reviews.llvm.org/D37520
More information about the llvm-commits
mailing list