[PATCH] D125387: Rename and fix ValueMap::resize to reserve
Sven van Haastregt via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 06:01:22 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG28a0b94d2221: Rename and fix ValueMap::resize to reserve (authored by PFerreira, committed by svenvh).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125387/new/
https://reviews.llvm.org/D125387
Files:
llvm/include/llvm/IR/ValueMap.h
Index: llvm/include/llvm/IR/ValueMap.h
===================================================================
--- llvm/include/llvm/IR/ValueMap.h
+++ llvm/include/llvm/IR/ValueMap.h
@@ -141,7 +141,7 @@
size_type size() const { return Map.size(); }
/// Grow the map so that it has at least Size buckets. Does not shrink
- void resize(size_t Size) { Map.resize(Size); }
+ void reserve(size_t Size) { Map.reserve(Size); }
void clear() {
Map.clear();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125387.428917.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220512/fbb36299/attachment.bin>
More information about the llvm-commits
mailing list