Skip to content

Commit 50a904d

Browse files
kazutakahirataAlexisPerry
authored andcommitted
[CodeGen] Remove extraneous ArrayRef (NFC) (llvm#96085)
A C array can be implicitly cast to ArrayRef.
1 parent ea9bf57 commit 50a904d

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)