Skip to content

Commit 749788e

Browse files
committedMar 19, 2018
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 llvm-svn: 327852
1 parent 8418576 commit 749788e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎clang/unittests/Tooling/ToolingTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ TEST(runToolOnCode, TestSkipFunctionBody) {
319319

320320
TEST(runToolOnCodeWithArgs, TestNoDepFile) {
321321
llvm::SmallString<32> DepFilePath;
322-
ASSERT_FALSE(
323-
llvm::sys::fs::createTemporaryFile("depfile", "d", DepFilePath));
322+
ASSERT_FALSE(llvm::sys::fs::getPotentiallyUniqueTempFileName("depfile", "d",
323+
DepFilePath));
324324
std::vector<std::string> Args;
325325
Args.push_back("-MMD");
326326
Args.push_back("-MT");

0 commit comments

Comments
 (0)
Please sign in to comment.