Fix an issue where, in i386 mode, the wrong values were being copied into the pair object for a single-entry NSDictionary

Fixes rdar://28502335

llvm-svn: 282754
This commit is contained in:
Enrico Granata 2016-09-29 19:46:48 +00:00
parent 851cb98269
commit bcfafa42fb
1 changed files with 2 additions and 2 deletions

View File

@ -573,8 +573,8 @@ lldb_private::formatters::NSDictionary1SyntheticFrontEnd::GetChildAtIndex(
*(data_ptr + 1) = value_at_idx;
} else {
uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes();
*data_ptr = key_ptr;
*(data_ptr + 1) = value_ptr;
*data_ptr = key_at_idx;
*(data_ptr + 1) = value_at_idx;
}
DataExtractor data(buffer_sp, process_sp->GetByteOrder(), ptr_size);