[llvm] r230599 - Replace a few instances of NULL with nullptr.

David Majnemer david.majnemer at gmail.com
Wed Feb 25 17:10:49 PST 2015


Author: majnemer
Date: Wed Feb 25 19:10:49 2015
New Revision: 230599

URL: http://llvm.org/viewvc/llvm-project?rev=230599&view=rev
Log:
Replace a few instances of NULL with nullptr.

Modified:
    llvm/trunk/tools/bugpoint/ExtractFunction.cpp
    llvm/trunk/tools/lli/lli.cpp

Modified: llvm/trunk/tools/bugpoint/ExtractFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ExtractFunction.cpp?rev=230599&r1=230598&r2=230599&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/ExtractFunction.cpp (original)
+++ llvm/trunk/tools/bugpoint/ExtractFunction.cpp Wed Feb 25 19:10:49 2015
@@ -195,9 +195,9 @@ static Constant *GetTorInit(std::vector<
   assert(!TorList.empty() && "Don't create empty tor list!");
   std::vector<Constant*> 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),

Modified: llvm/trunk/tools/lli/lli.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/lli.cpp?rev=230599&r1=230598&r2=230599&view=diff
==============================================================================
--- llvm/trunk/tools/lli/lli.cpp (original)
+++ llvm/trunk/tools/lli/lli.cpp Wed Feb 25 19:10:49 2015
@@ -597,7 +597,7 @@ int main(int argc, char **argv, char * c
     // 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) {





More information about the llvm-commits mailing list