diff --git a/llvm/lib/Analysis/MemoryProfileInfo.cpp b/llvm/lib/Analysis/MemoryProfileInfo.cpp index 3a752d42241a9..2b49dce17b793 100644 --- a/llvm/lib/Analysis/MemoryProfileInfo.cpp +++ b/llvm/lib/Analysis/MemoryProfileInfo.cpp @@ -184,10 +184,9 @@ void CallStackTrie::addCallStack(MDNode *MIB) { addCallStack(getMIBAllocType(MIB), CallStack, getMIBTotalSize(MIB)); } -static MDNode *createMIBNode(LLVMContext &Ctx, - std::vector &MIBCallStack, +static MDNode *createMIBNode(LLVMContext &Ctx, ArrayRef MIBCallStack, AllocationType AllocType, uint64_t TotalSize) { - std::vector MIBPayload( + SmallVector MIBPayload( {buildCallstackMetadata(MIBCallStack, Ctx)}); MIBPayload.push_back( MDString::get(Ctx, getAllocTypeAttributeString(AllocType)));