[PATCH] D91088: [CUDA][HIP] Fix capturing reference to host variable

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 9 11:33:46 PST 2020


tra added a comment.

Ouch. This is definitely a bug.  https://godbolt.org/z/faPWcv

Granted, the compilation will eventually fail in most cases due to ptxas failing to resolve the reference to the variable we do not generate on the device, but it's something we should catch in Sema.

Filed https://bugs.llvm.org/show_bug.cgi?id=48121


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

https://reviews.llvm.org/D91088



More information about the cfe-commits mailing list