[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 10 22:34:38 PST 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 164f85db876e61cf4a3c34493ed11e8f5820f968 f79b66cb6eb624c6e06c447a7f9d6824dc1628d5 -- clang/test/CodeGen/PowerPC/ppc32-complex-gnu-abi.c clang/include/clang/Basic/CodeGenOptions.h clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/TargetInfo.h clang/lib/CodeGen/Targets/PPC.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Frontend/CompilerInvocation.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/Targets/PPC.cpp b/clang/lib/CodeGen/Targets/PPC.cpp
index f4885a927a..f514f2e25a 100644
--- a/clang/lib/CodeGen/Targets/PPC.cpp
+++ b/clang/lib/CodeGen/Targets/PPC.cpp
@@ -439,7 +439,7 @@ ABIArgInfo PPC32_SVR4_ABIInfo::classifyReturnType(QualType RetTy) const {
       return ABIArgInfo::getDirect(CoerceTy);
     }
   }
-  if(isComplexInRegABI && RetTy->isAnyComplexType()) {
+  if (isComplexInRegABI && RetTy->isAnyComplexType()) {
     return handleComplex(RetTy, Size);
   }
 

``````````

</details>


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


More information about the cfe-commits mailing list