[PATCH] D124571: Avoid strict aliasing violation on type punning inside llvm::PointerIntPair

Breno Rodrigues Guimaraes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 16:58:06 PST 2023


brenoguim updated this revision to Diff 499672.
brenoguim added a comment.

Remove placement new as it's not needed because Ptr must have a trivial move constructor and thus it's an implicit lifetime class.


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

https://reviews.llvm.org/D124571

Files:
  llvm/include/llvm/ADT/PointerIntPair.h
  llvm/unittests/ADT/PointerIntPairTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124571.499672.patch
Type: text/x-patch
Size: 3099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230223/21bf205d/attachment.bin>


More information about the llvm-commits mailing list