From aeffc01a7247cd95560b0c35b7a2c8d5a434b1f0 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 20 Jan 2025 15:18:03 +0000 Subject: [PATCH] [lldb][DWARFASTParserClang][NFC] Remove redundant local variable Tiny improvement to reviewability of an upcoming refactor. --- .../source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index fb3af44abfa8..68fa1d13943a 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -3127,7 +3127,6 @@ size_t DWARFASTParserClang::ParseChildParameters( } } - bool skip = false; if (is_artificial) { // In order to determine if a C++ member function is "const" we // have to look at the const-ness of "this"... @@ -3150,10 +3149,7 @@ size_t DWARFASTParserClang::ParseChildParameters( } } } - skip = true; - } - - if (!skip) { + } else { Type *type = die.ResolveTypeUID(param_type_die_form.Reference()); if (type) { function_param_types.push_back(type->GetForwardCompilerType());