From 3bd9ff3f1e34242568c16736316aafe04d9b7b86 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 26 Feb 2015 01:10:49 +0000 Subject: [PATCH] Replace a few instances of NULL with nullptr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230599 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/ExtractFunction.cpp | 4 ++-- tools/lli/lli.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 0d001cdc811..238cbbc70a0 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -195,9 +195,9 @@ static Constant *GetTorInit(std::vector > &TorList) { assert(!TorList.empty() && "Don't create empty tor list!"); std::vector ArrayElts; Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext()); - + StructType *STy = - StructType::get(Int32Ty, TorList[0].first->getType(), NULL); + StructType::get(Int32Ty, TorList[0].first->getType(), nullptr); for (unsigned i = 0, e = TorList.size(); i != e; ++i) { Constant *Elts[] = { ConstantInt::get(Int32Ty, TorList[i].second), diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 178df1fa04c..9c2b781ab22 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -597,7 +597,7 @@ int main(int argc, char **argv, char * const *envp) { // function later on to make an explicit call, so get the function now. Constant *Exit = Mod->getOrInsertFunction("exit", Type::getVoidTy(Context), Type::getInt32Ty(Context), - NULL); + nullptr); // Run static constructors. if (!ForceInterpreter) { -- 2.34.1