[clang] [CodeGen] Remove extraneous ArrayRef (NFC) (PR #96085)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 09:13:18 PDT 2024
================
@@ -1200,15 +1200,14 @@ void CodeGenPGO::emitCounterSetOrIncrement(CGBuilderTy &Builder, const Stmt *S,
if (llvm::EnableSingleByteCoverage)
Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::instrprof_cover),
- ArrayRef(Args, 4));
+ Args);
else {
if (!StepV)
Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::instrprof_increment),
- ArrayRef(Args, 4));
+ Args);
else
----------------
kazutakahirata wrote:
Thank you for catching this. Corrected in the latest iteration.
https://github.com/llvm/llvm-project/pull/96085
More information about the cfe-commits
mailing list