[C++] Use 'nullptr'. Transforms edition.
[oota-llvm.git] / lib / Transforms / IPO / ExtractGV.cpp
index 4211f122383a8c3e2f05765a72f85ea72013f69b..408713a2c24b3f3c0589db20f9480a171aad951f 100644 (file)
@@ -95,7 +95,7 @@ namespace {
        makeVisible(*I, Delete);
 
         if (Delete)
-          I->setInitializer(0);
+          I->setInitializer(nullptr);
       }
 
       // Visit the Functions.
@@ -134,7 +134,7 @@ namespace {
           } else {
             Declaration =
               new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage,
-                                 0, CurI->getName());
+                                 nullptr, CurI->getName());
 
           }
           CurI->replaceAllUsesWith(Declaration);