Fix a race condition in llvm::sys::path::unique_file: when we end up
authorDouglas Gregor <dgregor@apple.com>
Thu, 10 Jan 2013 01:58:46 +0000 (01:58 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 10 Jan 2013 01:58:46 +0000 (01:58 +0000)
commit06c7008e30d3e278f2d779135ff2ce50bfc643fc
treeec140d2c4da503e49ae782792d5b63a2dd812498
parentb11f05043465bceae4853a3bd2c01d7d664cc5e3
Fix a race condition in llvm::sys::path::unique_file: when we end up
failing to create the unique file because the path doesn't exist,
don't fail if someone else manages to create the path before we do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172032 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/PathV2.inc