[llvm] [BOLT] Update LSDA encoding for x86-64 large code model (PR #190685)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 21:22:02 PDT 2026


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 origin/main HEAD --extensions cpp,h -- bolt/include/bolt/Core/BinaryContext.h bolt/lib/Core/BinaryContext.cpp bolt/lib/Rewrite/RewriteInstance.cpp bolt/lib/Utils/CommandLineOpts.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index ef5012b25..5dbdc84c2 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -2249,7 +2249,8 @@ Error RewriteInstance::readSpecialSections() {
   }
 
   // Placed in a separate block so that we can check for it in lit tests
-  if (BC->TheTriple->getArch() == llvm::Triple::x86_64 && BC->UseLargeCodeModel) {
+  if (BC->TheTriple->getArch() == llvm::Triple::x86_64 &&
+      BC->UseLargeCodeModel) {
     BC->outs() << "BOLT-INFO: large code model detected\n";
     BC->updateLSDAEncoding();
   }

``````````

</details>


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


More information about the llvm-commits mailing list