Skip to content

Commit 4acba06

Browse files
[memprof] Use a new constructor of IndexedAllocationInfo (NFC) (#116920)
IndexedAllocationInfo now has a new constructor that allows us to omit the inline call stack, which is going away soon. This patch migrates away from the old constructor.
1 parent ab7201a commit 4acba06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/Transforms/Instrumentation/MemProfUseTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ makeRecordV2(std::initializer_list<::llvm::memprof::CallStackId> AllocFrames,
323323
for (const auto &CSId : AllocFrames) {
324324
// We don't populate IndexedAllocationInfo::CallStack because we use it only
325325
// in Version1.
326-
MR.AllocSites.push_back({{}, CSId, Block, Schema});
326+
MR.AllocSites.emplace_back(CSId, Block, Schema);
327327
}
328328
for (const auto &CSId : CallSiteFrames)
329329
MR.CallSiteIds.push_back(CSId);

0 commit comments

Comments
 (0)