Skip to content

Commit ce277ab

Browse files
committed
[NATIVECPU] use arg_size()
1 parent 3df5766 commit ce277ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLNativeCPUUtils/PrepareSYCLNativeCPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ PreservedAnalyses PrepareSYCLNativeCPUPass::run(Module &M,
427427
if (Entry.second == "") {
428428
if (const Function *CF = I->getCalledFunction()) {
429429
unsigned numParams = CF->getFunctionType()->getNumParams();
430-
auto numArgs = std::distance(I->arg_begin(), I->arg_end());
430+
auto numArgs = I->arg_size();
431431
if (numArgs == numParams)
432432
continue;
433433
assert(numArgs + 1 == numParams);

0 commit comments

Comments
 (0)