From 4b32b6871e2d433e1b71edc5a0dc4decc124b305 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Thu, 20 Feb 2014 10:04:07 +0000 Subject: [PATCH] Change parameter type of _mm_prefetch to "const void *". Otherwise, this is not backwards compatible to the existing macro and can break existing code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201772 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/BuiltinsX86.def | 2 +- test/Headers/mmprefetch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Basic/BuiltinsX86.def b/include/clang/Basic/BuiltinsX86.def index 4a67fc1f5f..8223938262 100644 --- a/include/clang/Basic/BuiltinsX86.def +++ b/include/clang/Basic/BuiltinsX86.def @@ -59,7 +59,7 @@ BUILTIN(__builtin_ia32_pswapdsi, "V2iV2i", "nc") // All MMX instructions will be generated via builtins. Any MMX vector // types (<1 x i64>, <2 x i32>, etc.) that aren't used by these builtins will be // expanded by the back-end. -BUILTIN(_mm_prefetch, "vcC*i", "nc") +BUILTIN(_mm_prefetch, "vvC*i", "nc") BUILTIN(__builtin_ia32_emms, "v", "") BUILTIN(__builtin_ia32_paddb, "V8cV8cV8c", "") BUILTIN(__builtin_ia32_paddw, "V4sV4sV4s", "") diff --git a/test/Headers/mmprefetch.c b/test/Headers/mmprefetch.c index 7452bea85d..ba4ebd9b22 100644 --- a/test/Headers/mmprefetch.c +++ b/test/Headers/mmprefetch.c @@ -3,7 +3,7 @@ #include // Check to make sure that _mm_prefetch survives redeclaration. -void _mm_prefetch(char const*, int); +void _mm_prefetch(void const*, int); void f(char *a) { _mm_prefetch(a, 0); -- 2.40.0