[clang] [llvm] [CodeGen][AArch64][FMV] PAC the stub_helper's frame on arm64e (PR #84704)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 13:08:11 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff bee2654300a8f524e05dd4cad41411d597246ac0 492d65f2bb5cea2ae3492cf8634684aeb8146b54 --extensions c,h,cpp -- clang/test/CodeGen/attr-target-version-arm64e.c clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/CodeGen/CodeGenModule.cpp clang/test/CodeGen/aarch64-mixed-target-attributes.c clang/test/CodeGen/attr-cpuspecific.c clang/test/CodeGen/attr-target-clones.c clang/test/CodeGen/attr-target-mv-va-args.c clang/test/CodeGen/attr-target-mv.c clang/test/CodeGen/attr-target-version.c clang/test/CodeGenCXX/attr-cpuspecific.cpp clang/test/CodeGenCXX/attr-target-clones-aarch64.cpp clang/test/CodeGenCXX/attr-target-clones.cpp clang/test/CodeGenCXX/attr-target-mv-diff-ns.cpp clang/test/CodeGenCXX/attr-target-mv-member-funcs.cpp clang/test/CodeGenCXX/attr-target-mv-out-of-line-defs.cpp clang/test/CodeGenCXX/attr-target-mv-overloads.cpp clang/test/CodeGenCXX/attr-target-version.cpp clang/test/CodeGenCXX/fmv-namespace.cpp llvm/include/llvm/CodeGen/AsmPrinter.h llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 76b6bc39b8..304200e57f 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2835,7 +2835,8 @@ static void CreateMultiVersionResolverReturn(CodeGenModule &CGM,
   if (SupportsIFunc) {
     llvm::Constant *Fn = FuncToReturn;
     const ASTContext &Ctx = CGM.getContext();
-    QualType FTy = Ctx.getFunctionType(Ctx.VoidTy, {}, FunctionProtoType::ExtProtoInfo());
+    QualType FTy =
+        Ctx.getFunctionType(Ctx.VoidTy, {}, FunctionProtoType::ExtProtoInfo());
     Fn = CGM.getFunctionPointer(Fn, FTy);
     Builder.CreateRet(Fn);
     return;

``````````

</details>


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


More information about the cfe-commits mailing list