Author: ibiryukov Date: Mon Mar 19 07:20:25 2018 New Revision: 327852 URL: http://llvm.org/viewvc/llvm-project?rev=327852&view=rev Log: Updated a usage of createTemporaryFile that does not expect file to be created.
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 Modified: cfe/trunk/unittests/Tooling/ToolingTest.cpp Modified: cfe/trunk/unittests/Tooling/ToolingTest.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ToolingTest.cpp?rev=327852&r1=327851&r2=327852&view=diff ============================================================================== --- cfe/trunk/unittests/Tooling/ToolingTest.cpp (original) +++ cfe/trunk/unittests/Tooling/ToolingTest.cpp Mon Mar 19 07:20:25 2018 @@ -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"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits