From c34599e77c8010c6e754d35fed07f5fd8c6cb60b Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Tue, 7 Apr 2020 12:49:26 -0400 Subject: [PATCH] [hip] Fix volatile-qualified member function declartion. - It should be a volatile-qualified member function instead of returning volatile type. Change-Id: Id7aaa1953d56151b59e469ef22b9f4280f63bebb [ROCm/hip commit: a48b312aa940f891c0f39e71d490313796d7fedb] --- projects/hip/include/hip/hcc_detail/hip_fp16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_fp16.h b/projects/hip/include/hip/hcc_detail/hip_fp16.h index 52abc1a004..3fa18dae2e 100644 --- a/projects/hip/include/hip/hcc_detail/hip_fp16.h +++ b/projects/hip/include/hip/hcc_detail/hip_fp16.h @@ -229,7 +229,7 @@ THE SOFTWARE. __host__ __device__ operator __half_raw() const { return __half_raw{data}; } __host__ __device__ - operator volatile __half_raw() const volatile + operator __half_raw() const volatile { return __half_raw{data}; }