Skip to content

Commit aeffc01

Browse files
committed
[lldb][DWARFASTParserClang][NFC] Remove redundant local variable
Tiny improvement to reviewability of an upcoming refactor.
1 parent 59dffce commit aeffc01

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,6 @@ size_t DWARFASTParserClang::ParseChildParameters(
31273127
}
31283128
}
31293129

3130-
bool skip = false;
31313130
if (is_artificial) {
31323131
// In order to determine if a C++ member function is "const" we
31333132
// have to look at the const-ness of "this"...
@@ -3150,10 +3149,7 @@ size_t DWARFASTParserClang::ParseChildParameters(
31503149
}
31513150
}
31523151
}
3153-
skip = true;
3154-
}
3155-
3156-
if (!skip) {
3152+
} else {
31573153
Type *type = die.ResolveTypeUID(param_type_die_form.Reference());
31583154
if (type) {
31593155
function_param_types.push_back(type->GetForwardCompilerType());

0 commit comments

Comments
 (0)