[clang] cf11f01 - [NFC] Fix the definition of SuitableAlign
Xiangling Liao via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 21 10:36:02 PDT 2020
Author: Xiangling Liao
Date: 2020-10-21T13:34:56-04:00
New Revision: cf11f017af32a797e301f56b163a989ad73630fa
URL: https://github.com/llvm/llvm-project/commit/cf11f017af32a797e301f56b163a989ad73630fa
DIFF: https://github.com/llvm/llvm-project/commit/cf11f017af32a797e301f56b163a989ad73630fa.diff
LOG: [NFC] Fix the definition of SuitableAlign
Added:
Modified:
clang/include/clang/Basic/TargetInfo.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index 7253b5ea9abe..26dc6eacb204 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/include/clang/Basic/TargetInfo.h
@@ -581,8 +581,9 @@ class TargetInfo : public virtual TransferrableTargetInfo,
/// Determine whether constrained floating point is supported on this target.
virtual bool hasStrictFP() const { return HasStrictFP; }
- /// Return the alignment that is suitable for storing any
- /// object with a fundamental alignment requirement.
+ /// Return the alignment that is the largest alignment ever used for any
+ /// scalar/SIMD data type on the target machine you are compiling for
+ /// (including types with an extended alignment requirement).
unsigned getSuitableAlign() const { return SuitableAlign; }
/// Return the default alignment for __attribute__((aligned)) on
More information about the cfe-commits
mailing list