aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-10-02 12:06:29 -0700
committerKazu Hirata <kazu@google.com>2021-10-02 12:06:29 -0700
commitc1e32b3fc0210120d1c1c4513d798ae9ebef4fb8 (patch)
treef287a2d58c9e2cf8d2c84f6d94c4c9566c0074c0 /llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
parentd9152a85712ab1a05edc84acbc7623fd3915c5d6 (diff)
downloadllvm-c1e32b3fc0210120d1c1c4513d798ae9ebef4fb8.zip
llvm-c1e32b3fc0210120d1c1c4513d798ae9ebef4fb8.tar.gz
llvm-c1e32b3fc0210120d1c1c4513d798ae9ebef4fb8.tar.bz2
[Target] Migrate from getNumArgOperands to arg_size (NFC)
Note that getNumArgOperands is considered a legacy name. See llvm/include/llvm/IR/InstrTypes.h for details.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index 27323ef..642aa6b 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -822,7 +822,7 @@ bool WebAssemblyFastISel::selectCall(const Instruction *I) {
}
SmallVector<unsigned, 8> Args;
- for (unsigned I = 0, E = Call->getNumArgOperands(); I < E; ++I) {
+ for (unsigned I = 0, E = Call->arg_size(); I < E; ++I) {
Value *V = Call->getArgOperand(I);
MVT::SimpleValueType ArgTy = getSimpleType(V->getType());
if (ArgTy == MVT::INVALID_SIMPLE_VALUE_TYPE)