================ @@ -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 { ---------------- PiJoules wrote:
Correct, this should handle some of those other pointee-like things. It makes the implementation much easier since I wouldn't need to explicitly check for the reference, pointer, or member pointer targets. I didn't intend for this to work with ObjC or block pointers so I'll adjust to not account for those. https://github.com/llvm/llvm-project/pull/135836 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits