From 52647ad0275c9bf76a78b6cb2575fd0be697819f Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 25 Jul 2023 08:20:16 -0400 Subject: [PATCH] HIP: Fix broken version check for deprecated macro Remove test hack that was accidentally pushed. (cherry picked from commit 73105a54725ec11165dd8c90ca3b7a0b1b9cd6e3) --- clang/lib/Headers/__clang_hip_libdevice_declares.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Headers/__clang_hip_libdevice_declares.h b/clang/lib/Headers/__clang_hip_libdevice_declares.h index ed57602..f15198b 100644 --- a/clang/lib/Headers/__clang_hip_libdevice_declares.h +++ b/clang/lib/Headers/__clang_hip_libdevice_declares.h @@ -317,7 +317,7 @@ __device__ __attribute__((pure)) __2f16 __ocml_log_2f16(__2f16); __device__ __attribute__((pure)) __2f16 __ocml_log10_2f16(__2f16); __device__ __attribute__((pure)) __2f16 __ocml_log2_2f16(__2f16); -#if HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR >= 560 || 1 +#if HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR >= 560 #define __DEPRECATED_SINCE_HIP_560(X) __attribute__((deprecated(X))) #else #define __DEPRECATED_SINCE_HIP_560(X) -- 2.7.4