CodeGen: switch to a range based for loop

Use a range based for loop instead of manual iteration.  NFC.

llvm-svn: 215287
1 file changed