We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ec7cd5 commit c94d56eCopy full SHA for c94d56e
llvm/include/llvm/ProfileData/MemProf.h
@@ -416,10 +416,7 @@ struct IndexedMemProfRecord {
416
// the last entry in the list with the same function GUID.
417
llvm::SmallVector<CallStackId> CallSiteIds;
418
419
- void clear() {
420
- AllocSites.clear();
421
- CallSiteIds.clear();
422
- }
+ void clear() { *this = IndexedMemProfRecord(); }
423
424
void merge(const IndexedMemProfRecord &Other) {
425
// TODO: Filter out duplicates which may occur if multiple memprof
0 commit comments