[llvm] [llvm-debuginfo-analyzer] Fix crash with WebAssembly dead code (PR #141616)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 08:03:13 PDT 2025


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 HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/DebugInfo/LogicalView/Core/LVRange.h llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h llvm/lib/DebugInfo/LogicalView/Readers/LVBinaryReader.cpp llvm/lib/DebugInfo/LogicalView/Readers/LVDWARFReader.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVRange.h b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVRange.h
index 75889637e..cc4d5d916 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVRange.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVRange.h
@@ -60,8 +60,8 @@ class LVRange final : public LVObject {
 
 public:
   LVRange(LVAddress Address = MaxAddress)
-      : LVObject(),
-        RangesTree(Allocator), TombstoneAddress(Address), Lower(Address) {}
+      : LVObject(), RangesTree(Allocator), TombstoneAddress(Address),
+        Lower(Address) {}
   LVRange(const LVRange &) = delete;
   LVRange &operator=(const LVRange &) = delete;
   ~LVRange() = default;

``````````

</details>


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


More information about the llvm-commits mailing list