[llvm] [memprof] Fix IndexedMemProfRecord::clear (PR #118533)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 12:07:37 PST 2024
================
@@ -416,7 +416,10 @@ struct IndexedMemProfRecord {
// the last entry in the list with the same function GUID.
llvm::SmallVector<CallStackId> CallSiteIds;
- void clear() { AllocSites.clear(); }
+ void clear() {
----------------
snehasish wrote:
An more durable alternative to this:
`*this = IndexedMemProfRecord();`
Up to you if you want to adopt it.
https://github.com/llvm/llvm-project/pull/118533
More information about the llvm-commits
mailing list