summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-09-14 23:28:02 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-09-14 23:28:02 +0000
commitc92d28d4272ba8343e84b196efcdc983c5dbf039 (patch)
tree68a29527c4887467293e99ac260f4ba34769a777
parent3abe18d21a032492ef3fdebc504f4ec4afefcd01 (diff)
downloadbcm5719-llvm-c92d28d4272ba8343e84b196efcdc983c5dbf039.tar.gz
bcm5719-llvm-c92d28d4272ba8343e84b196efcdc983c5dbf039.zip
Simplify, NFC.
Thanks to Rui for the suggestion. llvm-svn: 247637
-rw-r--r--lld/ELF/Writer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 238cac3fed6..5978d7b457a 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -237,10 +237,8 @@ public:
*P++ = NumSymbols; // nbucket
*P++ = NumSymbols; // nchain
- std::vector<uint32_t> Buckets;
- Buckets.resize(NumSymbols);
- std::vector<uint32_t> Chains;
- Chains.resize(NumSymbols);
+ std::vector<uint32_t> Buckets(NumSymbols);
+ std::vector<uint32_t> Chains(NumSymbols);
for (unsigned I = 1; I < NumSymbols; ++I) {
uint32_t Hash = Hashes[I - 1] % NumSymbols;
OpenPOWER on IntegriCloud