Fix __clang_cuda_math_forward_declares.h
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 11 Jun 2020 03:41:51 +0000 (23:41 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 11 Jun 2020 03:47:13 +0000 (23:47 -0400)
commitaf00eb25f890ecbf02818f1466da8f30d93e6298
tree89a3b82d73cca806a5da269464f54f9bae9357d8
parentc79ab63e839b2621405f4472c46f88bfc7a30257
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.
clang/lib/Headers/__clang_cuda_math_forward_declares.h