summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-10 21:32:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-10 21:32:14 +0000
commit2a008784d36f492b1fbead7a0f2e7c838ea0befb (patch)
tree28f7976720b717f7e64cf4f37389f1fbfd0a2a13 /clang/lib/Frontend/DependencyFile.cpp
parentc0a5d5bc4f7edab93b98204abebd59126af494b5 (diff)
downloadbcm5719-llvm-2a008784d36f492b1fbead7a0f2e7c838ea0befb.tar.gz
bcm5719-llvm-2a008784d36f492b1fbead7a0f2e7c838ea0befb.zip
Use the simpler version of llvm::sys::fs::remove when possible.
llvm-svn: 198957
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index 4037af9055d..1e3aba7254c 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -166,8 +166,7 @@ static void PrintFilename(raw_ostream &OS, StringRef Filename) {
void DependencyFileCallback::OutputDependencyFile() {
if (SeenMissingHeader) {
- bool existed;
- llvm::sys::fs::remove(OutputFile, existed);
+ llvm::sys::fs::remove(OutputFile);
return;
}
OpenPOWER on IntegriCloud