[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 31 03:51:45 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))
----------------
moorabbit wrote:
I don't think `SanitizerKind::LCFI` exists as a variant of `SanitizerKind`. Did you mean `SanitizerKind::KCFI`?
https://github.com/llvm/llvm-project/pull/151348
More information about the cfe-commits
mailing list