summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-09-29 19:46:48 +0000
committerEnrico Granata <egranata@apple.com>2016-09-29 19:46:48 +0000
commitbcfafa42fb802abce452755e13899109abe39928 (patch)
treeeefafd18995d23bd2544d47fc3211cf6872d9c57
parent851cb98269e94bb39cf2ee2b2f4b307535c4fb02 (diff)
downloadbcm5719-llvm-bcfafa42fb802abce452755e13899109abe39928.tar.gz
bcm5719-llvm-bcfafa42fb802abce452755e13899109abe39928.zip
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
-rw-r--r--lldb/source/Plugins/Language/ObjC/NSDictionary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
index 341f09830e8..022a471e385 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);
OpenPOWER on IntegriCloud