[Lldb-commits] [lldb] [lldb][Clang] Removed redundant code in DWARFASTParserClang (PR #197802)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 14 14:07:52 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Iasonaskrpr
<details>
<summary>Changes</summary>
This Declaration unique pointer was intialized but is not being used anywhere
---
Full diff: https://github.com/llvm/llvm-project/pull/197802.diff
1 Files Affected:
- (modified) lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp (-5)
``````````diff
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index b78bc09e9d5e0..b2a363231237f 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -2497,11 +2497,6 @@ Function *DWARFASTParserClang::ParseFunctionFromDWARF(
func_name.SetValue(ConstString(name));
FunctionSP func_sp;
- std::unique_ptr<Declaration> decl_up;
- if (decl_file || decl_line || decl_column)
- decl_up = std::make_unique<Declaration>(
- die.GetCU()->GetFile(decl_file.value_or(0)), decl_line.value_or(0),
- decl_column.value_or(0));
SymbolFileDWARF *dwarf = die.GetDWARF();
// Supply the type _only_ if it has already been parsed
``````````
</details>
https://github.com/llvm/llvm-project/pull/197802
More information about the lldb-commits
mailing list