[all-commits] [llvm/llvm-project] 093665: [CUDA] Do not diagnose host/device variable access...

Artem Belevich via All-commits all-commits at lists.llvm.org
Mon Dec 14 11:56:55 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0936655bac78f6e9cb84dc3feb30c32012100839
      https://github.com/llvm/llvm-project/commit/0936655bac78f6e9cb84dc3feb30c32012100839
  Author: Artem Belevich <tra at google.com>
  Date:   2020-12-14 (Mon, 14 Dec 2020)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/test/SemaCUDA/device-use-host-var.cu

  Log Message:
  -----------
  [CUDA] Do not diagnose host/device variable access in dependent types.

`isCUDADeviceBuiltinSurfaceType()`/`isCUDADeviceBuiltinTextureType()` do not
work on dependent types as they rely on specific type attributes.

Differential Revision: https://reviews.llvm.org/D92893




More information about the All-commits mailing list