[PATCH] D150486: Initialize PunnedPointer

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 13 10:37:38 PDT 2023


vitalybuka added inline comments.


================
Comment at: llvm/include/llvm/ADT/PointerIntPair.h:37
 
   explicit constexpr PunnedPointer(intptr_t i = 0) { *this = i; }
 
----------------
brenoguim wrote:
> I wonder why this constructor didn't kick in.
Oh, I was probably visually looking PunnedPointer() and somehow missed this one. Yes, it should.

So I guess the real issue is https://reviews.llvm.org/D150504


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150486



More information about the llvm-commits mailing list