[PATCH] D77621: ADT: SmallVector size/capacity use word-size integers when elements are small

Andrew via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 24 21:37:31 PDT 2020


browneee updated this revision to Diff 260064.
browneee added a comment.

Change uintptr_t to uint64_t to ensure this does not instantiate the same template twice on platforms where uintptr_t is equivalent to uint32_t.

Also considered using the preprocessor to disable the uintptr_t instantiation, but chose to avoid preprocessor use.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77621

Files:
  llvm/include/llvm/ADT/SmallVector.h
  llvm/lib/Support/SmallVector.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77621.260064.patch
Type: text/x-patch
Size: 8394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200425/21a7fbf2/attachment.bin>


More information about the cfe-commits mailing list