Skip to content

Commit f7ccb32

Browse files
[Instrumentation] Remove an extraneous ArrayRef (NFC) (#94890)
We can implicitly convert RemainingVDs to an ArrayRef. Note that RemainingVDs is of type SmallVector<InstrProfValueData, 24>.
1 parent de736d9 commit f7ccb32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ bool MemOPSizeOpt::perform(MemOp MO) {
402402
// If all promoted, we don't need the MD.prof metadata.
403403
if (SavedRemainCount > 0 || Version != NumVals) {
404404
// Otherwise we need update with the un-promoted records back.
405-
ArrayRef<InstrProfValueData> RemVDs(RemainingVDs);
406-
annotateValueSite(*Func.getParent(), *MO.I, RemVDs, SavedRemainCount,
405+
annotateValueSite(*Func.getParent(), *MO.I, RemainingVDs, SavedRemainCount,
407406
IPVK_MemOPSize, NumVals);
408407
}
409408

0 commit comments

Comments
 (0)