[llvm] [BOLT] Determine address size from binary (PR #74870)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 09:18: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 a539a090009378ecfcfbfaaa280eeac8f5b9d695 f0e3b3eb895d5301f945743cadb75054f1783815 -- bolt/lib/Core/Exceptions.cpp bolt/lib/Rewrite/RewriteInstance.cpp
``````````

</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 2a8a8b2a16..1e8ca56968 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -623,9 +623,9 @@ void RewriteInstance::parseBuildID() {
 
   // Reading notes section (see Portable Formats Specification, Version 1.1,
   // pg 2-5, section "Note Section").
-  DataExtractor DE = DataExtractor(Buf,
-                                   /*IsLittleEndian=*/true,
-                                   InputFile->getBytesInAddress());
+  DataExtractor DE =
+      DataExtractor(Buf,
+                    /*IsLittleEndian=*/true, InputFile->getBytesInAddress());
   uint64_t Offset = 0;
   if (!DE.isValidOffset(Offset))
     return;

``````````

</details>


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


More information about the llvm-commits mailing list