[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
Thu May 5 17:44:20 PDT 2022


brenoguim added a comment.

No, wait... We can have a `PunnedPointer<PointerIntPair<int*>>`, and the constructor of `PointerIntPair` is not trivial, because it holds a `PunnedPointer` which does not have a trivial constructor. Back to the drawing board.


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

https://reviews.llvm.org/D124571



More information about the llvm-commits mailing list