[clang] [clang] Function type attribute to prevent CFI instrumentation (PR #135836)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 3 12:03:58 PDT 2025


================
@@ -3027,9 +3027,13 @@ static LValue EmitFunctionDeclLValue(CodeGenFunction &CGF, const Expr *E,
                                      GlobalDecl GD) {
   const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
   llvm::Constant *V = CGF.CGM.getFunctionPointer(GD);
+  auto ETy = E->getType();
----------------
PiJoules wrote:

Done

https://github.com/llvm/llvm-project/pull/135836


More information about the cfe-commits mailing list