[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
GitOrigin-RevId: 87275186d1eb1fde38e133f2852317d817907bc5
1 file changed