Driver: convert a couple more instances to range based loops

More conversion to range based for loops rather than direct iterators with
dereferencing.  NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224954 91177308-0d34-0410-b5e6-96231b3b80d8