summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb42ed2)
raw | patch | inline | side by side (parent: fb42ed2)
author | Hal Finkel <hfinkel@anl.gov> | |
Wed, 10 Sep 2014 21:06:11 +0000 (21:06 +0000) | ||
committer | Hal Finkel <hfinkel@anl.gov> | |
Wed, 10 Sep 2014 21:06:11 +0000 (21:06 +0000) |
Clang/LLVM trunk now have support for __builtin_assume_aligned, turn this &&
into an || so we can use it ourselves.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217545 91177308-0d34-0410-b5e6-96231b3b80d8
into an || so we can use it ourselves.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217545 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compiler.h | patch | blob | history |
index 85f0cc6a39176f79107a472561aee55289ff048d..66d310133f8b403a2e76c5ecbdbf66cda291277a 100644 (file)
/// \macro LLVM_ASSUME_ALIGNED
/// \brief Returns a pointer with an assumed alignment.
-#if __has_builtin(__builtin_assume_aligned) && __GNUC_PREREQ(4, 7)
+#if __has_builtin(__builtin_assume_aligned) || __GNUC_PREREQ(4, 7)
# define LLVM_ASSUME_ALIGNED(p, a) __builtin_assume_aligned(p, a)
#elif defined(LLVM_BUILTIN_UNREACHABLE)
// As of today, clang does not support __builtin_assume_aligned.