]> granicus.if.org Git - clang/commitdiff
Updated a usage of createTemporaryFile that does not expect file to be created.
authorIlya Biryukov <ibiryukov@google.com>
Mon, 19 Mar 2018 14:20:25 +0000 (14:20 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 19 Mar 2018 14:20:25 +0000 (14:20 +0000)
Summary:
This fixes a usage of createTemporaryFile in clang repo after
a change in llvm repo.

Reviewers: klimek, bkramer, krasimir, espindola, ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D36828

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

unittests/Tooling/ToolingTest.cpp

index 6dd0e53c4ddc12bc1b24accd068eb6441a99d9f0..bd57118e3a9b7c05bf8a7ef38a9f10581dd87921 100644 (file)
@@ -319,8 +319,8 @@ TEST(runToolOnCode, TestSkipFunctionBody) {
 
 TEST(runToolOnCodeWithArgs, TestNoDepFile) {
   llvm::SmallString<32> DepFilePath;
-  ASSERT_FALSE(
-      llvm::sys::fs::createTemporaryFile("depfile", "d", DepFilePath));
+  ASSERT_FALSE(llvm::sys::fs::getPotentiallyUniqueTempFileName("depfile", "d",
+                                                               DepFilePath));
   std::vector<std::string> Args;
   Args.push_back("-MMD");
   Args.push_back("-MT");