Pierre-vh marked an inline comment as done. Pierre-vh added inline comments.
================ Comment at: clang/test/SemaCUDA/amdgpu-bf16.cu:9 + +__device__ void devicefn() { +} ---------------- tra wrote: > We should probably also have a case verifying that actual attempt to use > `__bf16` in device code is still diagnosed. Good catch, it's currently no longer diagnosed. What can I use in `ConvertDeclSpecToType` to make it diagnose only if the current function is a device function? If I understand correctly, LangOpts are for the whole TU so I can't use that (e.g. CUDAIsDevice), right? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138651/new/ https://reviews.llvm.org/D138651 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits