[clang] [AVR] make the AVR ABI Swift compatible (PR #72298)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 14 10:49:46 PST 2023


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 410f130bb99b88f1a8f21659d98053e6f3e5e8f6 ed8b63c31f8b9a496bc5c51ab83a132c224594f0 -- clang/lib/CodeGen/Targets/AVR.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/Targets/AVR.cpp b/clang/lib/CodeGen/Targets/AVR.cpp
index bc6418c1e2..ae141d3f48 100644
--- a/clang/lib/CodeGen/Targets/AVR.cpp
+++ b/clang/lib/CodeGen/Targets/AVR.cpp
@@ -113,9 +113,9 @@ class AVRTargetCodeGenInfo : public TargetCodeGenInfo {
 public:
   AVRTargetCodeGenInfo(CodeGenTypes &CGT, unsigned NPR, unsigned NRR)
       : TargetCodeGenInfo(std::make_unique<AVRABIInfo>(CGT, NPR, NRR)) {
-        SwiftInfo =
-          std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/true);
-      }
+    SwiftInfo =
+        std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/true);
+  }
 
   LangAS getGlobalVarAddressSpace(CodeGenModule &CGM,
                                   const VarDecl *D) const override {

``````````

</details>


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


More information about the cfe-commits mailing list