diff options
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 2543670..3926776 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -3171,7 +3171,7 @@ bool llvm::isMathLibCallNoop(const CallBase *Call, if (!TLI || !TLI->getLibFunc(*F, Func)) return false; - if (Call->getNumArgOperands() == 1) { + if (Call->arg_size() == 1) { if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) { const APFloat &Op = OpC->getValueAPF(); switch (Func) { @@ -3260,7 +3260,7 @@ bool llvm::isMathLibCallNoop(const CallBase *Call, } } - if (Call->getNumArgOperands() == 2) { + if (Call->arg_size() == 2) { ConstantFP *Op0C = dyn_cast<ConstantFP>(Call->getArgOperand(0)); ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1)); if (Op0C && Op1C) { |