diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-27 02:25:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-27 02:25:14 +0000 |
commit | 1a18b7cf805fc6bfc6dc44fb66799ad577d57213 (patch) | |
tree | eb503190f507523963547bd70936a950dd3fd17c /lib/Analysis/InductionVariable.cpp | |
parent | 87e873bd3dda5e6319157c5f132af9e34385bc58 (diff) |
Change Constant::getNullConstant to Constant::getNullValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InductionVariable.cpp')
-rw-r--r-- | lib/Analysis/InductionVariable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp index 155017480b..8c02dfa334 100644 --- a/lib/Analysis/InductionVariable.cpp +++ b/lib/Analysis/InductionVariable.cpp @@ -115,7 +115,7 @@ InductionVariable::InductionVariable(PHINode *P, cfg::LoopInfo *LoopInfo) { Step = 0; if (V2 == Phi) { // referencing the PHI directly? Must have zero step - Step = Constant::getNullConstant(Phi->getType()); + Step = Constant::getNullValue(Phi->getType()); } else if (BinaryOperator *I = dyn_cast<BinaryOperator>(V2)) { // TODO: This could be much better... if (I->getOpcode() == Instruction::Add) { @@ -143,7 +143,7 @@ InductionVariable::InductionVariable(PHINode *P, cfg::LoopInfo *LoopInfo) { if (StepE.Offset) Step = (Value*)StepE.Offset; else - Step = Constant::getNullConstant(Step->getType()); + Step = Constant::getNullValue(Step->getType()); const Type *ETy = Phi->getType(); if (ETy->isPointerType()) ETy = Type::ULongTy; Step = (Value*)(StepE.Offset ? StepE.Offset : ConstantInt::get(ETy,0)); |