[clang] Resign function pointer (PR #98847)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 14 17:13:29 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 0fc4e3052454391b7e54a05c1918527cf36c74cc b8e2bacfd917b190c62cdd296d51e8ba98cc4611 --extensions c,cpp,h -- clang/test/CodeGen/ptrauth-function-lvalue-cast-disc.c clang/test/CodeGen/ptrauth-function-type-discriminator-cast.c clang/test/CodeGen/ptrauth.c clang/test/Sema/ptrauth-function-type-discriminatior.c clang/lib/CodeGen/Address.h clang/lib/CodeGen/CGBuilder.h clang/lib/CodeGen/CGExpr.cpp clang/lib/CodeGen/CGExprScalar.cpp clang/lib/CodeGen/CGPointerAuth.cpp clang/lib/CodeGen/CGValue.h clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/Headers/ptrauth.h clang/test/Preprocessor/ptrauth_feature.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index a43a8c711b..4a85153cd7 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -202,8 +202,7 @@ template <> struct DominatingValue<Address> {
   }
   static type restore(CodeGenFunction &CGF, saved_type value) {
     return Address(DominatingLLVMValue::restore(CGF, value.BasePtr),
-                   value.ElementType, value.Alignment,
-                   CGPointerAuthInfo(),
+                   value.ElementType, value.Alignment, CGPointerAuthInfo(),
                    DominatingLLVMValue::restore(CGF, value.Offset));
   }
 };

``````````

</details>


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


More information about the cfe-commits mailing list