[PATCH] D125998: [Metadata] Add a resize capability to MDNodes and add a push_back interface to MDNodes.

Wolfgang Pieb via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 21 13:20:27 PDT 2022


wolfgangp updated this revision to Diff 431174.
wolfgangp added a comment.

Use the default constructor for LargeStorageVector followed by a resize instead of the constructor using a numOps parameter. Doing the latter requires the copy constructor for MDOperand.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125998/new/

https://reviews.llvm.org/D125998

Files:
  llvm/include/llvm/IR/Metadata.h
  llvm/lib/IR/Metadata.cpp
  llvm/unittests/IR/MetadataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125998.431174.patch
Type: text/x-patch
Size: 14387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220521/1f09d8dc/attachment.bin>


More information about the llvm-commits mailing list