Skip to content

Commit 52647ad

Browse files
arsenmtru
authored andcommitted
HIP: Fix broken version check for deprecated macro
Remove test hack that was accidentally pushed. (cherry picked from commit 73105a5)
1 parent bc849e5 commit 52647ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Headers/__clang_hip_libdevice_declares.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ __device__ __attribute__((pure)) __2f16 __ocml_log_2f16(__2f16);
317317
__device__ __attribute__((pure)) __2f16 __ocml_log10_2f16(__2f16);
318318
__device__ __attribute__((pure)) __2f16 __ocml_log2_2f16(__2f16);
319319

320-
#if HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR >= 560 || 1
320+
#if HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR >= 560
321321
#define __DEPRECATED_SINCE_HIP_560(X) __attribute__((deprecated(X)))
322322
#else
323323
#define __DEPRECATED_SINCE_HIP_560(X)

0 commit comments

Comments
 (0)