[clang] 73105a5 - HIP: Fix broken version check for deprecated macro

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 25 05:36:25 PDT 2023


Author: Matt Arsenault
Date: 2023-07-25T08:36:19-04:00
New Revision: 73105a54725ec11165dd8c90ca3b7a0b1b9cd6e3

URL: https://github.com/llvm/llvm-project/commit/73105a54725ec11165dd8c90ca3b7a0b1b9cd6e3
DIFF: https://github.com/llvm/llvm-project/commit/73105a54725ec11165dd8c90ca3b7a0b1b9cd6e3.diff

LOG: HIP: Fix broken version check for deprecated macro

Remove test hack that was accidentally pushed.

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 cfe-commits mailing list