================ @@ -5555,6 +5579,27 @@ CGCallee CodeGenFunction::EmitCallee(const Expr *E) { return EmitCallee(ICE->getSubExpr()); } + // Try to remember the original __ptrauth qualifier for loads of + // function pointers. + if (ICE->getCastKind() == CK_LValueToRValue) { + auto *SubExpr = ICE->getSubExpr(); + if (auto *PtrType = SubExpr->getType()->getAs<PointerType>()) { ---------------- kovdan01 wrote:
Nit ```suggestion if (const auto *PtrType = SubExpr->getType()->getAs<PointerType>()) { ``` https://github.com/llvm/llvm-project/pull/100830 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits