diff options
Diffstat (limited to 'clang/unittests')
| -rw-r--r-- | clang/unittests/Tooling/RefactoringTest.cpp | 2 | ||||
| -rw-r--r-- | clang/unittests/Tooling/RewriterTestContext.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/RefactoringTest.cpp b/clang/unittests/Tooling/RefactoringTest.cpp index f4c086c4a35..f8d10d286ed 100644 --- a/clang/unittests/Tooling/RefactoringTest.cpp +++ b/clang/unittests/Tooling/RefactoringTest.cpp @@ -194,7 +194,7 @@ public: SmallString<1024> Path; int FD; llvm::error_code EC = - llvm::sys::fs::unique_file(Twine(Name) + "%%%%%%", FD, Path); + llvm::sys::fs::createTemporaryFile(Name, "", FD, Path); assert(!EC); (void)EC; diff --git a/clang/unittests/Tooling/RewriterTestContext.h b/clang/unittests/Tooling/RewriterTestContext.h index 629ebf1b627..841cd0f9097 100644 --- a/clang/unittests/Tooling/RewriterTestContext.h +++ b/clang/unittests/Tooling/RewriterTestContext.h @@ -63,7 +63,7 @@ class RewriterTestContext { SmallString<1024> Path; int FD; llvm::error_code EC = - llvm::sys::fs::unique_file(Twine(Name) + "%%%%%%", FD, Path); + llvm::sys::fs::createTemporaryFile(Name, "", FD, Path); assert(!EC); (void)EC; |

