[llvm-branch-commits] [clang] 52647ad - HIP: Fix broken version check for deprecated macro

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 27 06:38:13 PDT 2023


Author: Matt Arsenault
Date: 2023-07-27T15:28:30+02:00
New Revision: 52647ad0275c9bf76a78b6cb2575fd0be697819f

URL: https://github.com/llvm/llvm-project/commit/52647ad0275c9bf76a78b6cb2575fd0be697819f
DIFF: https://github.com/llvm/llvm-project/commit/52647ad0275c9bf76a78b6cb2575fd0be697819f.diff

LOG: HIP: Fix broken version check for deprecated macro

Remove test hack that was accidentally pushed.

(cherry picked from commit 73105a54725ec11165dd8c90ca3b7a0b1b9cd6e3)

Added: 
    

Modified: 
    clang/lib/Headers/__clang_hip_libdevice_declares.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/__clang_hip_libdevice_declares.h b/clang/lib/Headers/__clang_hip_libdevice_declares.h
index ed576027cb5e58..f15198b3d9f93e 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)


        


More information about the llvm-branch-commits mailing list