Skip to content

Commit 777d2e5

Browse files
[memprof] Drop the trait parameter (NFC) (#89461)
OnDiskIterableChainedHashTable::Create can default-contruct a trait object for us. We don't need to construct one on our own unless we need to customize something (like a version number).
1 parent 7fcca11 commit 777d2e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/ProfileData/InstrProfReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,13 +1272,13 @@ Error IndexedMemProfReader::deserialize(const unsigned char *Start,
12721272
MemProfFrameTable.reset(MemProfFrameHashTable::Create(
12731273
/*Buckets=*/Start + FrameTableOffset,
12741274
/*Payload=*/Start + FramePayloadOffset,
1275-
/*Base=*/Start, memprof::FrameLookupTrait()));
1275+
/*Base=*/Start));
12761276

12771277
if (Version >= memprof::Version2)
12781278
MemProfCallStackTable.reset(MemProfCallStackHashTable::Create(
12791279
/*Buckets=*/Start + CallStackTableOffset,
12801280
/*Payload=*/Start + CallStackPayloadOffset,
1281-
/*Base=*/Start, memprof::CallStackLookupTrait()));
1281+
/*Base=*/Start));
12821282

12831283
#ifdef EXPENSIVE_CHECKS
12841284
// Go through all the records and verify that CSId has been correctly

0 commit comments

Comments
 (0)