[PATCH] D125387: Rename and fix ValueMap::resize to reserve

Pedro Olsen Ferreira via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 05:06:50 PDT 2022


arkangath updated this revision to Diff 428908.
arkangath retitled this revision from "Build fix for ValueMap:resize" to "Rename and fix ValueMap::resize to reserve".
arkangath edited the summary of this revision.

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.428908.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220512/bc94c21e/attachment.bin>


More information about the llvm-commits mailing list