[libunwind] [libunwind] Fix compilation for the x32 ABI. (PR #116608)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 18 04:19:55 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 c95daac4c19fe54eeeb4d0ec5ca23f2673d1de71 279b29320b45b88ca110534f08ba627fe28016c2 --extensions h -- libunwind/include/__libunwind_config.h
``````````

</details>

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

``````````diff
diff --git a/libunwind/include/__libunwind_config.h b/libunwind/include/__libunwind_config.h
index bb7fe4c83a..c03fc0b7af 100644
--- a/libunwind/include/__libunwind_config.h
+++ b/libunwind/include/__libunwind_config.h
@@ -53,9 +53,9 @@
 #    else
 #      define _LIBUNWIND_CURSOR_SIZE 66
 #    endif
-#  elif defined(__ILP32__)
-#    define _LIBUNWIND_CONTEXT_SIZE 21
-#    define _LIBUNWIND_CURSOR_SIZE 28
+#elif defined(__ILP32__)
+#define _LIBUNWIND_CONTEXT_SIZE 21
+#define _LIBUNWIND_CURSOR_SIZE 28
 #  else
 #    define _LIBUNWIND_CONTEXT_SIZE 21
 #    define _LIBUNWIND_CURSOR_SIZE 33

``````````

</details>


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


More information about the cfe-commits mailing list