[llvm] [llvm-profgen] More tweaks to warnings (PR #68608)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 09:46:02 PDT 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 e85cdb94cc1f1cf3f61de65ae9f72348d0d52b80 38393056f97968d179d774583c9c1dec0f392bd2 -- llvm/tools/llvm-profgen/ProfiledBinary.cpp llvm/tools/llvm-profgen/ProfiledBinary.h
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.cpp b/llvm/tools/llvm-profgen/ProfiledBinary.cpp
index 56b5e7d80fee..afbda687a1b7 100644
--- a/llvm/tools/llvm-profgen/ProfiledBinary.cpp
+++ b/llvm/tools/llvm-profgen/ProfiledBinary.cpp
@@ -583,7 +583,8 @@ bool ProfiledBinary::dissassembleSymbol(std::size_t SI, ArrayRef<uint8_t> Bytes,
   }
 
   if (InvalidInstLength)
-    AddrsWithInvalidInstruction.insert({Address - InvalidInstLength, Address - 1});
+    AddrsWithInvalidInstruction.insert(
+        {Address - InvalidInstLength, Address - 1});
 
   if (ShowDisassembly)
     outs() << "\n";

``````````

</details>


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


More information about the llvm-commits mailing list