================ @@ -8627,6 +8636,40 @@ inline bool Type::isOverloadableType() const { !isMemberPointerType(); } +inline bool Type::hasCFIUncheckedCallee(const ASTContext &Context) const { + // Carefully strip sugar coating the underlying attributed type. We don't + // want to remove all the sugar because this will remove any wrapping + // attributed types. + QualType Ty(this, /*Quals=*/0); + + while (1) { ---------------- erichkeane wrote:
I think I'd rather this do a bit of a `while(!Ty.isCanonical())` instead. 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