[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:05 PDT 2026
https://github.com/Iasonaskrpr created https://github.com/llvm/llvm-project/pull/197802
This Declaration unique pointer was intialized but is not being used anywhere
>From 926ac8664b7a59347bdb03eafada9f5a875b8362 Mon Sep 17 00:00:00 2001
From: Iasonaskrpr <iaskarapro at gmail.com>
Date: Fri, 15 May 2026 00:05:14 +0300
Subject: [PATCH] [lldb][Clang] Removed redundant code in DWARFASTParserClang
---
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | 5 -----
1 file changed, 5 deletions(-)
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
More information about the lldb-commits
mailing list