Skip to content

Commit 3df8d0a

Browse files
committed
fixup! early exit from paramater loop
1 parent 84d75a7 commit 3df8d0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ DWARFASTParserClang::GetObjectParameter(const DWARFDIE &subprogram,
188188
if (child.Tag() != DW_TAG_formal_parameter)
189189
continue;
190190

191-
if (param_index == object_pointer_index.value_or(0))
191+
if (param_index == object_pointer_index.value_or(0)) {
192192
object_pointer = child;
193+
break;
194+
}
193195

194196
++param_index;
195197
}

0 commit comments

Comments
 (0)