diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-03 11:19:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-03 11:19:21 +0000 |
commit | 5fdf4756970ae431400422a9b725ba58d5e297a8 (patch) | |
tree | 931086be9f6225bf3c44a8def00716a4be891078 /lib/VMCore/Metadata.cpp | |
parent | f563fc35c89b7518baf2eb6580bd72041e39651b (diff) | |
download | external_llvm-5fdf4756970ae431400422a9b725ba58d5e297a8.zip external_llvm-5fdf4756970ae431400422a9b725ba58d5e297a8.tar.gz external_llvm-5fdf4756970ae431400422a9b725ba58d5e297a8.tar.bz2 |
The speedup doesn't appear to have been from this, but was an anomaly of my testing machine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Metadata.cpp')
-rw-r--r-- | lib/VMCore/Metadata.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 46363ee..d5f6aa9 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -553,7 +553,6 @@ getAllMetadataOtherThanDebugLocImpl(SmallVectorImpl<std::pair<unsigned, const LLVMContextImpl::MDMapTy &Info = getContext().pImpl->MetadataStore.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. |