[PATCH] D137706: [clang][Interp] Implement IntegralToPointer casts

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 19:52:23 PST 2022


shafik added a comment.

I agree with @aaron.ballman I expect some more tests for this.



================
Comment at: clang/lib/AST/Interp/Pointer.h:70
   Pointer(Block *B, unsigned BaseAndOffset);
+  Pointer(unsigned Offset);
   Pointer(const Pointer &P);
----------------
Is the only cast we have a `Pointer` that is a `nullptr` but has an `Offset` is from a integral to pointer cast? 


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

https://reviews.llvm.org/D137706



More information about the cfe-commits mailing list