summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 4a1e002242e..c32bdc28148 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -540,7 +540,7 @@ ValueObject::SetValueFromCString (ExecutionContextScope *exe_scope, const char *
lldb::Encoding encoding = Type::GetEncoding (GetOpaqueClangQualType(), count);
char *end = NULL;
- size_t byte_size = GetByteSize();
+ const size_t byte_size = GetByteSize();
switch (encoding)
{
case eEncodingInvalid:
@@ -580,7 +580,6 @@ ValueObject::SetValueFromCString (ExecutionContextScope *exe_scope, const char *
case eEncodingIEEE754:
{
- const size_t byte_size = GetByteSize();
const off_t byte_offset = GetByteOffset();
uint8_t *dst = const_cast<uint8_t *>(m_data.PeekData(byte_offset, byte_size));
if (dst != NULL)
OpenPOWER on IntegriCloud