[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 30 09:35:54 PDT 2025
================
@@ -303,6 +303,7 @@ FEATURE(is_trivially_assignable, LangOpts.CPlusPlus)
FEATURE(is_trivially_constructible, LangOpts.CPlusPlus)
FEATURE(is_trivially_copyable, LangOpts.CPlusPlus)
FEATURE(is_union, LangOpts.CPlusPlus)
+FEATURE(cfi, LangOpts.Sanitize.hasOneOf(SanitizerKind::CFI))
----------------
PiJoules wrote:
I think we'll also want to add `|| LangOpts.Sanitize.hasOneOf(SanitizerKind::LCFI)` into this check.
https://github.com/llvm/llvm-project/pull/151348
More information about the cfe-commits
mailing list