[llvm-branch-commits] [clang] [NFCI][clang] Allow overriding any global variable address space (PR #195612)

Aaron Ballman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 12 04:20:00 PDT 2026


AaronBallman wrote:

> I'm a little confused why want to do adjustments like this in CodeGen; shouldn't Sema know the address-space of variables?

I think it needs to be tracked in sema because of `constexpr` (which can happen at compile time or runtime) and AST matchers, etc.

https://github.com/llvm/llvm-project/pull/195612


More information about the llvm-branch-commits mailing list