Skip to content

Commit 09f88da

Browse files
[CodeGen] Remove extraneous ArrayRef (NFC) (#96085)
A C array can be implicitly cast to ArrayRef.
1 parent e0b66a4 commit 09f88da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CodeGen/CodeGenPGO.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,8 +1207,7 @@ void CodeGenPGO::emitCounterSetOrIncrement(CGBuilderTy &Builder, const Stmt *S,
12071207
ArrayRef(Args, 4));
12081208
else
12091209
Builder.CreateCall(
1210-
CGM.getIntrinsic(llvm::Intrinsic::instrprof_increment_step),
1211-
ArrayRef(Args));
1210+
CGM.getIntrinsic(llvm::Intrinsic::instrprof_increment_step), Args);
12121211
}
12131212
}
12141213

0 commit comments

Comments
 (0)