diff --git a/llvm/unittests/Transforms/Instrumentation/MemProfUseTest.cpp b/llvm/unittests/Transforms/Instrumentation/MemProfUseTest.cpp index ec81d2e560916..f0d978674f324 100644 --- a/llvm/unittests/Transforms/Instrumentation/MemProfUseTest.cpp +++ b/llvm/unittests/Transforms/Instrumentation/MemProfUseTest.cpp @@ -323,7 +323,7 @@ makeRecordV2(std::initializer_list<::llvm::memprof::CallStackId> AllocFrames, for (const auto &CSId : AllocFrames) { // We don't populate IndexedAllocationInfo::CallStack because we use it only // in Version1. - MR.AllocSites.push_back({{}, CSId, Block, Schema}); + MR.AllocSites.emplace_back(CSId, Block, Schema); } for (const auto &CSId : CallSiteFrames) MR.CallSiteIds.push_back(CSId);