Skip to content

Commit 8705e48

Browse files
authored
[lldb] Remove use of comma operator (NFC) (llvm#131233)
No reason for the comma operator, make this more conventional with two statements.
1 parent 9829d45 commit 8705e48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/source/ValueObject/ValueObjectSyntheticFilter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ lldb::ValueObjectSP ValueObjectSynthetic::GetNonSyntheticValue() {
362362
}
363363

364364
void ValueObjectSynthetic::CopyValueData(ValueObject *source) {
365-
m_value = (source->UpdateValueIfNeeded(), source->GetValue());
365+
if (!source->UpdateValueIfNeeded())
366+
return;
367+
m_value = source->GetValue();
366368
ExecutionContext exe_ctx(GetExecutionContextRef());
367369
m_error = m_value.GetValueAsData(&exe_ctx, m_data, GetModule().get());
368370
}

0 commit comments

Comments
 (0)