[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
Mon Jul 31 16:33:16 PDT 2023
rjmccall added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3542
+ LangAS AAS = getASTAllocaAddressSpace();
+ LangAS EAS = E->getType().getAddressSpace();
+ if (AAS != EAS) {
----------------
`E->getType().getAddressSpace()` is actually the top-level qualification of the type; you need `E->getType()->getPointeeType().getAddressSpace()`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156539/new/
https://reviews.llvm.org/D156539
More information about the cfe-commits
mailing list