In Clang the argument is const, therefore you need to use
const_cast<void*> to call _m_prefetchw.
---
gcc/config/i386/prfchwintrin.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/i386/prfchwintrin.h b/gcc/config/i386/prfchwintrin.h
index af3bded18e..bf2ccf37fc 100644
--- a/gcc/config/i386/prfchwintrin.h
+++ b/gcc/config/i386/prfchwintrin.h
@@ -29,7 +29,7 @@
#define _PRFCHWINTRIN_H_INCLUDED
extern __inline void __attribute__((__gnu_inline__, __always_inline__,
__artificial__))
-_m_prefetchw (void *__P)
+_m_prefetchw (const void *__P)
{
__builtin_prefetch (__P, 1, 3 /* _MM_HINT_T0 */);
}
--
2.53.0.windows.1