[llvm] [llvm] Replace deprecated aligned_storage with aligned byte array (PR #94169)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 12:53:45 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 5367b2c862a7bfe138ee17994edfdb7938437064 edee0957ffd4fa1829e9ef2e4dd0231c0540f792 -- llvm/include/llvm/ADT/FunctionExtras.h llvm/lib/Support/PrettyStackTrace.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/PrettyStackTrace.cpp b/llvm/lib/Support/PrettyStackTrace.cpp
index 7c6d84d369..9b09384e95 100644
--- a/llvm/lib/Support/PrettyStackTrace.cpp
+++ b/llvm/lib/Support/PrettyStackTrace.cpp
@@ -144,7 +144,8 @@ static void setCrashLogMessage(const char *msg) {
 #ifdef __APPLE__
 using CrashHandlerString = SmallString<2048>;
 using CrashHandlerStringStorage = std::byte[sizeof(CrashHandlerString)];
-alignas(CrashHandlerString) static CrashHandlerStringStorage crashHandlerStringStorage;
+alignas(CrashHandlerString) static CrashHandlerStringStorage
+    crashHandlerStringStorage;
 #endif
 
 /// This callback is run if a fatal signal is delivered to the process, it

``````````

</details>


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


More information about the llvm-commits mailing list