[clang] [CUDA] Treat function-scope statics in device code as device variables (PR #222985)
Pedro Oliveira via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 20 16:50:39 PDT 2026
pjmc-oliveira wrote:
- @jhuber6: replaced NDEBUG with [[maybe_unused]]
- @yxsamliu: HasEmptyDtor now checks the base element type of an array and added the tests. Note this also rejects namespace scope __device__/__constant__/__shared__ arrays with elements with a non-empty destructor that were previously accepted
- @Sirraide: This patch only fixes 'b1' from #233925, so I'm holding off on adding the tests
https://github.com/llvm/llvm-project/pull/222985
More information about the cfe-commits
mailing list