OSDN Git Service

Use createTemporaryFile in SampleProfTest
authorAlexander Kornienko <alexfh@google.com>
Mon, 17 Sep 2018 12:11:01 +0000 (12:11 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 17 Sep 2018 12:11:01 +0000 (12:11 +0000)
commitbb05e42b84e0cc63fb86afc8ddffc40e7b70161e
tree71a20c9b931cd7aad21029358bf549fdaab43154
parent5201dae2defd52cce43f84d3ed0570c80308728a
Use createTemporaryFile in SampleProfTest

Create a temporary file in the system temporary directory instead of creating a
file in the current directory, which may be not writable. (Fix for an issue
introduced in r342283.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342386 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ProfileData/SampleProfTest.cpp