[PATCH] D35310: [PM] Use range-based for loops in LegacyPassManager.cpp (NFC).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 09:13:32 PDT 2017


fhahn created this revision.
Herald added a subscriber: mehdi_amini.

This patch replaces a bunch of iterator-based for loops with range-based
for loops. There are 2 iterator-based loops left in this file in
removeNotPreservedAnalysis, but I think those cannot be replaced by
range-based for loops as they modify the container they are iterating
over.

Unless I missed something, this schould be a NFC and I would appreciate
if someone could have a quick look to confirm that.


https://reviews.llvm.org/D35310

Files:
  lib/IR/LegacyPassManager.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35310.106236.patch
Type: text/x-patch
Size: 4957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/01b5089b/attachment.bin>


More information about the llvm-commits mailing list