[PATCH] D156539: [Clang][CodeGen] `__builtin_alloca`s should care about address spaces too

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 28 09:02:23 PDT 2023


rjmccall added a comment.

We should probably write this code to work properly in case we add a target that makes `__builtin_alloca` return a pointer in the private address space.  Could you recover the target AS from the type of the expression instead of assuming `LangAS::Default`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156539



More information about the cfe-commits mailing list