[lldb] [llvm] Fix size in bytes of type DIEs when size in bits is not a multiple of 8 (PR #69741)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 16:48:33 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 5195d458587b02f3edf1347fae53417a74538648 b34b8f1786a6fb274710c5e4318bad83b04b0480 -- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index aab1dc218973..9633e3b19ec0 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@ -697,7 +697,6 @@ getMostAppropriateRepresentationAndSize(uint64_t SizeInBits) {
   return {dwarf::DW_AT_bit_size, SizeInBits};
 }
 
-
 void DwarfUnit::constructTypeDIE(DIE &Buffer, const DIBasicType *BTy) {
   // Get core information.
   StringRef Name = BTy->getName();

``````````

</details>


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


More information about the llvm-commits mailing list