[clang] [clang] Function type attribute to prevent CFI instrumentation (PR #135836)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 4 06:32:58 PDT 2025
================
@@ -8253,6 +8275,19 @@ inline bool Type::isObjectPointerType() const {
return false;
}
+inline bool Type::isCFIUncheckedCalleeFunctionType() const {
+ if (const auto *Fn = getAs<FunctionProtoType>())
+ return Fn->hasCFIUncheckedCallee();
+ return false;
+}
+
+inline bool Type::isPointerToCFIUncheckedCalleeFunctionType() const {
----------------
AaronBallman wrote:
Naming this sort of stuff is always extremely painful. See https://github.com/llvm/llvm-project/pull/122938 for other fun crimes.
https://github.com/llvm/llvm-project/pull/135836
More information about the cfe-commits
mailing list