[PATCH] D150746: [CodeGen]Translating pointer arguments can require an address space cast

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 17 09:34:02 PDT 2023


efriedma added a comment.

At first glance, this seems like the wrong place to put this cast.  If an expression in the AST produces a pointer with generic pointer type, then CodeGen should generate code for that expression that returns a generic pointer type.  We shouldn't wait until the pointer is used to force a cast to the correct type.


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

https://reviews.llvm.org/D150746



More information about the cfe-commits mailing list