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

Vince Harron vharron at google.com
Tue Dec 30 21:18:54 PST 2014


Switched to static_cast


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6814

Files:
  include/lldb/Utility/ProcessStructReader.h

Index: include/lldb/Utility/ProcessStructReader.h
===================================================================
--- include/lldb/Utility/ProcessStructReader.h
+++ include/lldb/Utility/ProcessStructReader.h
@@ -65,7 +65,7 @@
                     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));

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6814.17740.patch
Type: text/x-patch
Size: 737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141231/17bb343f/attachment.bin>


More information about the lldb-commits mailing list