[gold-plugin] Avoid race condition when creating temporary files.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Aug 2017 17:38:41 +0000 (17:38 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Aug 2017 17:38:41 +0000 (17:38 +0000)
commit74fbf45f4c92d2c22e6b05b8e4659e47cf6620e1
treed164d399a885253b596802c6485f25aa769876c4
parentfe67612eba9d58471fa832b378c536e77763a29c
[gold-plugin] Avoid race condition when creating temporary files.

This is both a potential security issue and a potential functionality
issue because we create temporary files from multiple threads. Use
the safe version of createTemporaryFile instead.

llvm-svn: 310636
llvm/tools/gold/gold-plugin.cpp