llvm.org GIT mirror llvm / 2d81850
Enable use of __builtin_assume_aligned when self-hosting 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 Hal Finkel 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
283283
284284 /// \macro LLVM_ASSUME_ALIGNED
285285 /// \brief Returns a pointer with an assumed alignment.
286 #if __has_builtin(__builtin_assume_aligned) && __GNUC_PREREQ(4, 7)
286 #if __has_builtin(__builtin_assume_aligned) || __GNUC_PREREQ(4, 7)
287287 # define LLVM_ASSUME_ALIGNED(p, a) __builtin_assume_aligned(p, a)
288288 #elif defined(LLVM_BUILTIN_UNREACHABLE)
289289 // As of today, clang does not support __builtin_assume_aligned.