Change Constant::getNullConstant to Constant::getNullValue


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2323 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp
index c48fa2f..6169730 100644
--- a/lib/Transforms/Scalar/DCE.cpp
+++ b/lib/Transforms/Scalar/DCE.cpp
@@ -108,10 +108,8 @@
 }
 
 static void ReplaceUsesWithConstant(Instruction *I) {
-  Constant *CPV = Constant::getNullConstant(I->getType());
-  
   // Make all users of this instruction reference the constant instead
-  I->replaceAllUsesWith(CPV);
+  I->replaceAllUsesWith(Constant::getNullValue(I->getType()));
 }
 
 // PropogatePredecessors - This gets "Succ" ready to have the predecessors from