From ef9956f4347c0450084228199dc427e6a8a0b1bb Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 17 Oct 2022 10:15:10 -0700 Subject: [IR] Rename FuncletPadInst::getNumArgOperands to arg_size (NFC) This patch renames FuncletPadInst::getNumArgOperands to arg_size for consistency with CallBase, where getNumArgOperands was removed in favor of arg_size in commit 3e1c787b3160bed4146d3b2b5f922aeed3caafd7 Differential Revision: https://reviews.llvm.org/D136048 --- llvm/lib/CodeGen/MachineFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 26b20d969568..78b49c923662 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -779,7 +779,7 @@ MCSymbol *MachineFunction::addLandingPad(MachineBasicBlock *LandingPad) { } } else if (const auto *CPI = dyn_cast(FirstI)) { - for (unsigned I = CPI->getNumArgOperands(); I != 0; --I) { + for (unsigned I = CPI->arg_size(); I != 0; --I) { Value *TypeInfo = CPI->getArgOperand(I - 1)->stripPointerCasts(); addCatchTypeInfo(LandingPad, dyn_cast(TypeInfo)); } -- cgit v1.2.3