Skip to content

Commit d93e7cd

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

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)