[Lldb-commits] [lldb] r225184 - fix cross compilation to 32 bit arm targets

Vince Harron vharron at google.com
Mon Jan 5 09:49:24 PST 2015


Author: vharron
Date: Mon Jan  5 11:49:23 2015
New Revision: 225184

URL: http://llvm.org/viewvc/llvm-project?rev=225184&view=rev
Log:
fix cross compilation to 32 bit arm targets

Modified:
    lldb/trunk/include/lldb/Utility/ProcessStructReader.h

Modified: lldb/trunk/include/lldb/Utility/ProcessStructReader.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/ProcessStructReader.h?rev=225184&r1=225183&r2=225184&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/ProcessStructReader.h (original)
+++ lldb/trunk/include/lldb/Utility/ProcessStructReader.h Mon Jan  5 11:49:23 2015
@@ -65,7 +65,7 @@ namespace lldb_private {
                     return;
                 ConstString const_name = ConstString(name.c_str());
                 size_t byte_index = static_cast<size_t>(bit_offset / 8);
-                m_fields[const_name] = FieldImpl{field_type, byte_index, size};
+                m_fields[const_name] = FieldImpl{field_type, byte_index, static_cast<size_t>(size)};
             }
             size_t total_size = struct_type.GetByteSize();
             lldb::DataBufferSP buffer_sp(new DataBufferHeap(total_size,0));





More information about the lldb-commits mailing list