Skip to content

Commit 8135db8

Browse files
committed
fix: parentheses and assert
1 parent 8207a5f commit 8135db8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)