aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-05-30 18:26:21 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-05-30 18:26:21 +0000
commitc2b9b367b9fd9ca200de4cacf3c3539bc7fafede (patch)
tree7af2c2cb0fad84eb5382a8004e55e0276f020a2c
parent8be373b0901a9fdff4ed473a4e7365ff2b445202 (diff)
Make macro safe in the face of users who pass "addr+64". Addition of void* is
invalid. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105172 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Headers/xmmintrin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h
index 3e82e28c42..e22a66b71a 100644
--- a/lib/Headers/xmmintrin.h
+++ b/lib/Headers/xmmintrin.h
@@ -607,10 +607,10 @@ _mm_storer_ps(float *p, __m128 a)
#define _MM_HINT_T2 3
#define _MM_HINT_NTA 0
-/* FIXME: We have to #define this because "sel" must be a constant integer, and
+/* FIXME: We have to #define this because "sel" must be a constant integer, and
Sema doesn't do any form of constant propagation yet. */
-#define _mm_prefetch(a, sel) (__builtin_prefetch((void *)a, 0, sel))
+#define _mm_prefetch(a, sel) (__builtin_prefetch((void *)(a), 0, sel))
static __inline__ void __attribute__((__always_inline__, __nodebug__))
_mm_stream_pi(__m64 *p, __m64 a)