Skip to content

Commit 44adc24

Browse files
[memprof] Use ArrayRef instead of std::vector<LinearFrameId> (NFC) (#116279)
LLVM Programmer's Manual prefers ArrayRef over actual sequential container types for read accesses.
1 parent 2d6459c commit 44adc24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ProfileData/MemProf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ class CallStackRadixTreeBuilder {
11341134
const llvm::DenseMap<FrameId, LinearFrameId> &MemProfFrameIndexes,
11351135
llvm::DenseMap<FrameId, FrameStat> &FrameHistogram);
11361136

1137-
const std::vector<LinearFrameId> &getRadixArray() const { return RadixArray; }
1137+
ArrayRef<LinearFrameId> getRadixArray() const { return RadixArray; }
11381138

11391139
llvm::DenseMap<CallStackId, LinearCallStackId> takeCallStackPos() {
11401140
return std::move(CallStackPos);

0 commit comments

Comments
 (0)