[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)
commit9c7d2781ed7fa2e88cf83c72b39b5f5123b156ee
treebdab03b185a00cbf932938570d8604edd8d78c9f
parentb29f7b83bb290ebc42d28cbb05836f043b507aab
[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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247241 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/LegacyPassManager.cpp