diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 46363eed525..d5f6aa92bdb 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -553,7 +553,6 @@ getAllMetadataOtherThanDebugLocImpl(SmallVectorImplMetadataStore.find(this)->second; assert(!Info.empty() && "Shouldn't have called this"); - Result.reserve(Info.size()); Result.append(Info.begin(), Info.end()); // Sort the resulting array so it is stable.