From: Enrico Granata Date: Thu, 29 Sep 2016 19:46:48 +0000 (+0000) Subject: Fix an issue where, in i386 mode, the wrong values were being copied into the pair... X-Git-Tag: llvmorg-4.0.0-rc1~8598 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcfafa42fb802abce452755e13899109abe39928;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp index 341f098..022a471 100644 --- a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp +++ b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp @@ -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);