[C++] Use 'nullptr'. Transforms edition.
[oota-llvm.git] / lib / Transforms / IPO / DeadArgumentElimination.cpp
index 4a3a0cd72982fefcd47b754da740e1fb656f9e57..d0a42664a6acee49b34bb76f39eeda0b3d6eb3c0 100644 (file)
@@ -765,7 +765,7 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
 
   // Find out the new return value.
   Type *RetTy = FTy->getReturnType();
-  Type *NRetTy = NULL;
+  Type *NRetTy = nullptr;
   unsigned RetCount = NumRetVals(F);
 
   // -1 means unused, other numbers are the new index
@@ -1051,7 +1051,7 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
         Value *RetVal;
 
         if (NFTy->getReturnType()->isVoidTy()) {
-          RetVal = 0;
+          RetVal = nullptr;
         } else {
           assert (RetTy->isStructTy());
           // The original return value was a struct, insert