summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-13 21:02:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-13 21:02:40 +0000
commit6f2e23b25d9be365266be43ffa1cf6f850b6027e (patch)
treebe594fcb089a0bf604afea59d87b7237475e72f8 /lib/Frontend/CompilerInstance.cpp
parent95099ef43aff8fb3d5d47bed0a583e7977f4b3f4 (diff)
downloadclang-6f2e23b25d9be365266be43ffa1cf6f850b6027e.tar.gz
clang-6f2e23b25d9be365266be43ffa1cf6f850b6027e.tar.bz2
clang-6f2e23b25d9be365266be43ffa1cf6f850b6027e.tar.xz
Use the sys::RemoveFileOnSignal that takes a StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r--lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index 648466d4dc..c2f03970be 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/lib/Frontend/CompilerInstance.cpp
@@ -560,7 +560,7 @@ CompilerInstance::createOutputFile(StringRef OutputPath,
// Make sure the out stream file gets removed if we crash.
if (RemoveFileOnSignal)
- llvm::sys::RemoveFileOnSignal(llvm::sys::Path(OSFile));
+ llvm::sys::RemoveFileOnSignal(OSFile);
if (ResultPathName)
*ResultPathName = OutFile;