[clang] 09f88da - [CodeGen] Remove extraneous ArrayRef (NFC) (#96085)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 09:49:29 PDT 2024
Author: Kazu Hirata
Date: 2024-06-19T09:49:26-07:00
New Revision: 09f88da966c8117c3ee9780aaa4cbaa7f4f0da5c
URL: https://github.com/llvm/llvm-project/commit/09f88da966c8117c3ee9780aaa4cbaa7f4f0da5c
DIFF: https://github.com/llvm/llvm-project/commit/09f88da966c8117c3ee9780aaa4cbaa7f4f0da5c.diff
LOG: [CodeGen] Remove extraneous ArrayRef (NFC) (#96085)
A C array can be implicitly cast to ArrayRef.
Added:
Modified:
clang/lib/CodeGen/CodeGenPGO.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp
index 2839697614595..ea726b5708a4a 100644
--- a/clang/lib/CodeGen/CodeGenPGO.cpp
+++ b/clang/lib/CodeGen/CodeGenPGO.cpp
@@ -1207,8 +1207,7 @@ void CodeGenPGO::emitCounterSetOrIncrement(CGBuilderTy &Builder, const Stmt *S,
ArrayRef(Args, 4));
else
Builder.CreateCall(
- CGM.getIntrinsic(llvm::Intrinsic::instrprof_increment_step),
- ArrayRef(Args));
+ CGM.getIntrinsic(llvm::Intrinsic::instrprof_increment_step), Args);
}
}
More information about the cfe-commits
mailing list