From 4fba98c2cf70582a68e622bb8e1a91b016ccaec6 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/clr commit: 35b001b33a07915fd062dd97a9d3a52d3aae45b6] --- projects/clr/hipamd/include/hip/hcc_detail/hip_fp16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/hip_fp16.h b/projects/clr/hipamd/include/hip/hcc_detail/hip_fp16.h index 52abc1a004..3fa18dae2e 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/hip_fp16.h +++ b/projects/clr/hipamd/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}; }