[cfe-commits] r105172 - /cfe/trunk/lib/Headers/xmmintrin.h
Nick Lewycky
nicholas at mxc.ca
Sun May 30 11:26:22 PDT 2010
Author: nicholas
Date: Sun May 30 13:26:21 2010
New Revision: 105172
URL: http://llvm.org/viewvc/llvm-project?rev=105172&view=rev
Log:
Make macro safe in the face of users who pass "addr+64". Addition of void* is
invalid.
Modified:
cfe/trunk/lib/Headers/xmmintrin.h
Modified: cfe/trunk/lib/Headers/xmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xmmintrin.h?rev=105172&r1=105171&r2=105172&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xmmintrin.h (original)
+++ cfe/trunk/lib/Headers/xmmintrin.h Sun May 30 13:26:21 2010
@@ -607,10 +607,10 @@
#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)
More information about the cfe-commits
mailing list