[C++11] Use 'nullptr'.

llvm-svn: 208280
This commit is contained in:
Craig Topper
2014-05-08 06:41:40 +00:00
parent 0120ce8c9f
commit f1186c5a8f
12 changed files with 109 additions and 110 deletions

View File

@@ -96,7 +96,7 @@ bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile,
// fstat rarely fails. If it does, claim the initial open didn't
// succeed.
R = CacheMissing;
*F = 0;
*F = nullptr;
}
}
}
@@ -110,7 +110,7 @@ bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile,
// If not, close the file if opened.
if (F && *F) {
(*F)->close();
*F = 0;
*F = nullptr;
}
return true;