[PATCH] D65764: Add TinyPtrVector support for general pointer-like things.

Andrew Trick via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 16:03:01 PDT 2019


atrick updated this revision to Diff 216281.
atrick added a comment.

I removed the extra if-block that I accidentally created.
I added a cast to fix a type mismatch that I meant to include in the last patch.

       assert(
  -        get<First>() == this->Val.getPointer() &&
  +        PointerLikeTypeTraits<First>::getAsVoidPointer(get<First>())
  +        == this->Val.getPointer() &&


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

https://reviews.llvm.org/D65764

Files:
  llvm/include/llvm/ADT/PointerUnion.h
  llvm/include/llvm/ADT/TinyPtrVector.h
  llvm/unittests/ADT/PointerUnionTest.cpp
  llvm/unittests/ADT/TinyPtrVectorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65764.216281.patch
Type: text/x-patch
Size: 11219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190820/3226ed35/attachment.bin>


More information about the llvm-commits mailing list