File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lldb/source/Plugins/SymbolFile/NativePDB Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -470,12 +470,12 @@ void UdtRecordCompleter::Record::ConstructRecord() {
470470 // If the new fields come after the already added ones
471471 // without overlap, go back to the root.
472472 if (iter->first <= offset && is_last_end_offset (iter)) {
473- if (record.kind == Member::Struct)
473+ if (record.kind == Member::Struct) {
474474 parent = &record;
475- else {
476- lldbassert (record.kind == Member::Union &&
477- " Current record must be a union" );
478- lldbassert (!record.fields .empty ());
475+ } else {
476+ assert (record.kind == Member::Union &&
477+ " Current record must be a union" );
478+ assert (!record.fields .empty ());
479479 // For unions, append the field to the last struct
480480 parent = record.fields .back ().get ();
481481 }
You can’t perform that action at this time.
0 commit comments