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 6dba99e14f7e508a5028036b753fa7f84e846307 
47af2b7229eaa6712fe5812e3d4dbea44bbb212b --extensions cpp -- 
lldb/source/Core/Section.cpp 
lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp 
b/lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
index 0ee827355f..33b9f85cc3 100644
--- a/lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
+++ b/lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
@@ -183,8 +183,9 @@ void ObjectFileJSON::CreateSections(SectionList 
&unified_section_list) {
   for (const auto &section : m_sections) {
     auto section_sp = std::make_shared<Section>(
         GetModule(), this, id++, ConstString(section.name),
-        section.type.value_or(eSectionTypeCode), section.address.value_or(0), 
section.size.value_or(0), 0,
-        section.size.value_or(0), /*log2align*/ 0, /*flags*/ 0);
+        section.type.value_or(eSectionTypeCode), section.address.value_or(0),
+        section.size.value_or(0), 0, section.size.value_or(0), /*log2align*/ 0,
+        /*flags*/ 0);
     m_sections_up->AddSection(section_sp);
     unified_section_list.AddSection(section_sp);
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/101062
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to