rocr: Fix compile error when using clang

Этот коммит содержится в:
David Yat Sin authored and Yat Sin, David committed 2025-05-27 23:56:28 -04:00
1 родитель d9a95605cc
Коммит 9d38ca0d22
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -446,7 +446,7 @@ class GpuAgent : public GpuAgentInt {
_mm_sfence();
*((uint8_t*)ptr + size - 1) = *((uint8_t*)ptr + size - 1);
_mm_mfence();
auto readback = *reinterpret_cast<volatile uint8_t*>(ptr + size - 1);
auto readback = *(reinterpret_cast<volatile uint8_t*>(ptr) + size - 1);
}
}