aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Metadata.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-03 11:19:21 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-03 11:19:21 +0000
commit5fdf4756970ae431400422a9b725ba58d5e297a8 (patch)
tree931086be9f6225bf3c44a8def00716a4be891078 /lib/VMCore/Metadata.cpp
parentf563fc35c89b7518baf2eb6580bd72041e39651b (diff)
downloadexternal_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.cpp1
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.