[clang] [PAC] Implement authentication for C++ member function pointers (PR #99576)
Daniil Kovalev via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 21 16:40:36 PDT 2024
================
@@ -365,6 +365,40 @@ llvm::Constant *CodeGenModule::getFunctionPointer(GlobalDecl GD,
return getFunctionPointer(getRawFunctionPointer(GD, Ty), FuncType);
}
+CGPointerAuthInfo CodeGenModule::getMemberFunctionPointerAuthInfo(QualType FT) {
+ assert(FT->getAs<MemberPointerType>() && "MemberPointerType expected");
+ auto &Schema = getCodeGenOpts().PointerAuth.CXXMemberFunctionPointers;
----------------
kovdan01 wrote:
Nit
```suggestion
const auto &Schema = getCodeGenOpts().PointerAuth.CXXMemberFunctionPointers;
```
https://github.com/llvm/llvm-project/pull/99576
More information about the cfe-commits
mailing list