Skip to content

Commit c94d56e

Browse files
Address a comment.
1 parent 7ec7cd5 commit c94d56e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/include/llvm/ProfileData/MemProf.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,7 @@ struct IndexedMemProfRecord {
416416
// the last entry in the list with the same function GUID.
417417
llvm::SmallVector<CallStackId> CallSiteIds;
418418

419-
void clear() {
420-
AllocSites.clear();
421-
CallSiteIds.clear();
422-
}
419+
void clear() { *this = IndexedMemProfRecord(); }
423420

424421
void merge(const IndexedMemProfRecord &Other) {
425422
// TODO: Filter out duplicates which may occur if multiple memprof

0 commit comments

Comments
 (0)