[PATCH] D102237: [CUDA][HIP] Fix non-ODR-use of static device variable

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 18 16:50:21 PDT 2021


tra added a comment.

Here's one example reproducer: https://godbolt.org/z/77M596W89
It's rather hairy, but should be usable for further debugging.

There are no CUDA attributes anywhere in sight, but we do end up emitting a host-only constructor for `o_u` which calls `strlen`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102237



More information about the cfe-commits mailing list