Skip to content

Commit f506bff

Browse files
committed
Require source be in success state before copying
1 parent 47bd3d1 commit f506bff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/ValueObject/ValueObjectSyntheticFilter.cpp

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

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

0 commit comments

Comments
 (0)