[NFC] simplify Darwin environment handling
authorJF Bastien <jfbastien@apple.com>
Tue, 30 Jul 2019 20:01:46 +0000 (20:01 +0000)
committerJF Bastien <jfbastien@apple.com>
Tue, 30 Jul 2019 20:01:46 +0000 (20:01 +0000)
commit42c9f3c9116c85411d8c1ad3a4bb256f44f71794
tree022e17e28c6bd465ae0d8017d8daf234c25cf143
parentf3983cc14af31e8ad2e6bf3031237040a3afdbf5
[NFC] simplify Darwin environment handling

The previous code detected conflicts through copy-pasta, this versions
uses a 'loop'.

llvm-svn: 367350
clang/lib/Driver/ToolChains/Darwin.cpp