[llvm] e99d50d - [Support] Remove stale comment

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 12:23:09 PDT 2020


Author: Shoaib Meenai
Date: 2020-05-26T12:22:03-07:00
New Revision: e99d50d8440efe8fa3515db4dae873ba39810dfd

URL: https://github.com/llvm/llvm-project/commit/e99d50d8440efe8fa3515db4dae873ba39810dfd
DIFF: https://github.com/llvm/llvm-project/commit/e99d50d8440efe8fa3515db4dae873ba39810dfd.diff

LOG: [Support] Remove stale comment

Clang has supported __builtin_assume_aligned since r217349 back in 2014,
so the comment is very out of date.

Added: 
    

Modified: 
    llvm/include/llvm/Support/Compiler.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 79af6f5d3c68..80ea76240d6c 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -373,7 +373,6 @@
 #if __has_builtin(__builtin_assume_aligned) || LLVM_GNUC_PREREQ(4, 7, 0)
 # 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.
 # define LLVM_ASSUME_ALIGNED(p, a) \
            (((uintptr_t(p) % (a)) == 0) ? (p) : (LLVM_BUILTIN_UNREACHABLE, (p)))
 #else


        


More information about the llvm-commits mailing list