[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

@@ -86,7 +86,7 @@ static void AddImplicitIncludePTH(MacroBuilder &Builder, Preprocessor &PP,
StringRef ImplicitIncludePTH) {
PTHManager *P = PP.getPTHManager();
// Null check 'P' in the corner case where it couldn't be created.
const char *OriginalFile = P ? P->getOriginalSourceFile() : 0;
const char *OriginalFile = P ? P->getOriginalSourceFile() : nullptr;
if (!OriginalFile) {
PP.getDiagnostics().Report(diag::err_fe_pth_file_has_no_source_header)