[all-commits] [llvm/llvm-project] af00eb: Fix __clang_cuda_math_forward_declares.h

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Jun 10 20:48:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: af00eb25f890ecbf02818f1466da8f30d93e6298
      https://github.com/llvm/llvm-project/commit/af00eb25f890ecbf02818f1466da8f30d93e6298
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-06-10 (Wed, 10 Jun 2020)

  Changed paths:
    M clang/lib/Headers/__clang_cuda_math_forward_declares.h

  Log Message:
  -----------
  Fix __clang_cuda_math_forward_declares.h

Recent change from `#if !defined(__CUDA__)` to `#if !__CUDA__` caused
regression on ROCm 3.5 since there is `#define __CUDA__`
before inclusion of the header file, which causes `#if !__CUDA__`
to be invalid.

Change `#if !__CUDA__` back to `#if !defined(__CUDA__)` for backward
compatibility.




More information about the All-commits mailing list