summaryrefslogtreecommitdiffstats
path: root/llvm/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
commite2cf6743102a171edff2ad88fee47239b065bd8f (patch)
treef7a25f41e74cd820cf125aafd4f358d243a166eb /llvm/lib/VMCore/Metadata.cpp
parentdd91e73409e6bdcb157933ebe55b4626acc584f5 (diff)
downloadbcm5719-llvm-e2cf6743102a171edff2ad88fee47239b065bd8f.tar.gz
bcm5719-llvm-e2cf6743102a171edff2ad88fee47239b065bd8f.zip
The speedup doesn't appear to have been from this, but was an anomaly of my testing machine.
llvm-svn: 153951
Diffstat (limited to 'llvm/lib/VMCore/Metadata.cpp')
-rw-r--r--llvm/lib/VMCore/Metadata.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Metadata.cpp b/llvm/lib/VMCore/Metadata.cpp
index 46363eed525..d5f6aa92bdb 100644
--- a/llvm/lib/VMCore/Metadata.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud