[C++11] Use 'nullptr'. Frontend edition.

llvm-svn: 209389
This commit is contained in:
Craig Topper
2014-05-22 04:46:25 +00:00
parent c3a73c3087
commit 49a2790fb3
19 changed files with 165 additions and 160 deletions

View File

@@ -96,7 +96,7 @@ DependencyFileGenerator *DependencyFileGenerator::CreateAndAttachToPreprocessor(
if (Opts.Targets.empty()) {
PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT);
return NULL;
return nullptr;
}
// Disable the "file not found" diagnostic if the -MG option was given.
@@ -141,7 +141,7 @@ void DFGImpl::FileChanged(SourceLocation Loc,
const FileEntry *FE =
SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(Loc)));
if (FE == 0) return;
if (!FE) return;
StringRef Filename = FE->getName();
if (!FileMatchesDepCriteria(Filename.data(), FileType))