diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-07-14 00:18:15 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-07-14 00:18:15 +0000 |
| commit | b132097b4558cd3fd697eedc1c26581d37b6e266 (patch) | |
| tree | 78d5945f162b13c4decc0760e149f4625e64a059 /lldb/source/Core/ValueObject.cpp | |
| parent | c3d6cb65431c8b01dbbddb0bc0821a0393d51bf0 (diff) | |
| download | bcm5719-llvm-b132097b4558cd3fd697eedc1c26581d37b6e266.tar.gz bcm5719-llvm-b132097b4558cd3fd697eedc1c26581d37b6e266.zip | |
I enabled some extra warnings for hidden local variables and for hidden
virtual functions and caught some things and did some general code cleanup.
llvm-svn: 108299
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 3 |
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) |

