[clang] [clang][AArch64] Point the nofp ABI check diagnostics at the callee (PR #103392)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 13 11:23:30 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 93f754c10099d08df34ff6b9562d545e300d55ab a6af41dd6da847237e79ce57b3847bbc241b2cba --extensions cpp,c -- clang/lib/CodeGen/Targets/AArch64.cpp clang/test/CodeGen/aarch64-soft-float-abi-errors.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/Targets/AArch64.cpp b/clang/lib/CodeGen/Targets/AArch64.cpp
index c2f48fcc43..97381f673c 100644
--- a/clang/lib/CodeGen/Targets/AArch64.cpp
+++ b/clang/lib/CodeGen/Targets/AArch64.cpp
@@ -861,7 +861,8 @@ void AArch64TargetCodeGenInfo::checkFunctionABI(
 
   if (!TI.hasFeature("fp") && !ABIInfo.isSoftFloat()) {
     diagnoseIfNeedsFPReg(CGM.getDiags(), TI.getABI(), ABIInfo,
-                         FuncDecl->getReturnType(), FuncDecl, FuncDecl->getLocation());
+                         FuncDecl->getReturnType(), FuncDecl,
+                         FuncDecl->getLocation());
     for (ParmVarDecl *PVD : FuncDecl->parameters()) {
       diagnoseIfNeedsFPReg(CGM.getDiags(), TI.getABI(), ABIInfo, PVD->getType(),
                            PVD, FuncDecl->getLocation());

``````````

</details>


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


More information about the cfe-commits mailing list