[clang] [Clang][AArch64] Fix Pure Scalables Types argument passing and return (PR #112747)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 17 10:02:34 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 ab90d2793cf56758a91f7a7ae027850af2455d3e 2b6d76fb5a4951f78e3bac1e271927df87f1aa3d --extensions h,cpp,c -- clang/test/CodeGen/aarch64-pure-scalable-args.c clang/include/clang/CodeGen/CGFunctionInfo.h clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/Targets/AArch64.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/CodeGen/CGFunctionInfo.h b/clang/include/clang/CodeGen/CGFunctionInfo.h
index 915f676d7d..9d785d878b 100644
--- a/clang/include/clang/CodeGen/CGFunctionInfo.h
+++ b/clang/include/clang/CodeGen/CGFunctionInfo.h
@@ -271,7 +271,8 @@ public:
     // in the unpadded type.
     unsigned unpaddedIndex = 0;
     for (auto eltType : coerceToType->elements()) {
-      if (isPaddingForCoerceAndExpand(eltType)) continue;
+      if (isPaddingForCoerceAndExpand(eltType))
+        continue;
       unpaddedIndex++;
     }
 

``````````

</details>


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


More information about the cfe-commits mailing list