Make macro safe in the face of users who pass "addr+64". Addition of void* is

invalid.

llvm-svn: 105172
This commit is contained in:
Nick Lewycky 2010-05-30 18:26:21 +00:00
parent 107b4e096c
commit 71eac6e114
1 changed files with 2 additions and 2 deletions

View File

@ -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)