diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-04-25 04:24:47 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-04-25 04:24:47 +0000 |
| commit | e6cb63e471c56fa7e90916ec81da76a2604e388f (patch) | |
| tree | d28cb6c8432d2e14d395d098272faa726a0cd01b /llvm/tools/bugpoint/Miscompilation.cpp | |
| parent | 409ac186bb7724c93d76db93b17ad6b1fdeea234 (diff) | |
| download | bcm5719-llvm-e6cb63e471c56fa7e90916ec81da76a2604e388f.tar.gz bcm5719-llvm-e6cb63e471c56fa7e90916ec81da76a2604e388f.zip | |
[C++] Use 'nullptr'. Tools edition.
llvm-svn: 207176
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
| -rw-r--r-- | llvm/tools/bugpoint/Miscompilation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index fecae60c41d..f5936ac88ea 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -235,7 +235,7 @@ static Module *TestMergedProgram(const BugDriver &BD, Module *M1, Module *M2, if (!Error.empty()) { // Delete the linked module delete M1; - return NULL; + return nullptr; } return M1; } @@ -592,7 +592,7 @@ static bool ExtractBlocks(BugDriver &BD, MiscompiledFunctions, VMap); Module *Extracted = BD.ExtractMappedBlocksFromModule(Blocks, ToExtract); - if (Extracted == 0) { + if (!Extracted) { // Weird, extraction should have worked. errs() << "Nondeterministic problem extracting blocks??\n"; delete ProgClone; @@ -845,7 +845,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, Safe->getOrInsertFunction("getPointerToNamedFunction", Type::getInt8PtrTy(Safe->getContext()), Type::getInt8PtrTy(Safe->getContext()), - (Type *)0); + (Type *)nullptr); // Use the function we just added to get addresses of functions we need. for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { |

