summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-27 02:25:14 +0000
committerChris Lattner <sabre@nondot.org>2002-04-27 02:25:14 +0000
commit2716b5e524d29855d69d4cd29a4a468c485cc0b9 (patch)
tree67a17e8fd58ff4cd585d342ae5c9c798491a3dbb /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent93ddab25e825125756cd8304111bdca4edbac8d1 (diff)
downloadbcm5719-llvm-2716b5e524d29855d69d4cd29a4a468c485cc0b9.tar.gz
bcm5719-llvm-2716b5e524d29855d69d4cd29a4a468c485cc0b9.zip
Change Constant::getNullConstant to Constant::getNullValue
llvm-svn: 2323
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 311ceae441b..c2fa84c21f7 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -123,7 +123,7 @@ Instruction *InstCombiner::visitSub(BinaryOperator *I) {
//
if (Constant *Op2 = dyn_cast<Constant>(I->getOperand(1)))
// Calculate 0 - RHS
- if (Constant *RHS = *Constant::getNullConstant(I->getType()) - *Op2) {
+ if (Constant *RHS = *Constant::getNullValue(I->getType()) - *Op2) {
return BinaryOperator::create(Instruction::Add, I->getOperand(0), RHS,
I->getName());
}
OpenPOWER on IntegriCloud