[LPM] Simplify this code and fix a compile error for compilers that
authorChandler Carruth <chandlerc@gmail.com>
Thu, 10 Sep 2015 04:22:36 +0000 (04:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 10 Sep 2015 04:22:36 +0000 (04:22 +0000)
commit87275186d1eb1fde38e133f2852317d817907bc5
tree8256ab04acb2080de2190b18abb002d3569410e7
parentb1e3a9ae8d30e23186f08548f9bd3ba79c09ea1c
[LPM] Simplify this code and fix a compile error for compilers that
don't correctly implement the scoping rules of C++11 range based for
loops. This kind of aliasing isn't a good idea anyways (and wasn't
really intended).

llvm-svn: 247241
llvm/lib/IR/LegacyPassManager.cpp