Restrict __builtin_assume_aligned to gcc 4.7+

llvm-svn: 171408
This commit is contained in:
Michael J. Spencer 2013-01-02 20:23:49 +00:00
parent 8e9968e6f2
commit 49cbcf460d

View File

@ -240,7 +240,8 @@
/// \macro LLVM_ASSUME_ALIGNED
/// \brief Returns a pointer with an assumed alignment.
#if defined(__GNUC__) && !defined(__clang__)
#if !defined(__clang__) && ((__GNUC__ > 4) \
|| (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
// FIXME: Enable on clang when it supports it.
# define LLVM_ASSUME_ALIGNED(p, a) __builtin_assume_aligned(p, a)
#else