[Lldb-commits] [PATCH] Work around for Visual Studio 2013 compiler crash
Zachary Turner
zturner at google.com
Wed Dec 17 10:03:35 PST 2014
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6702
Files:
lldb/trunk/include/lldb/Utility/ProcessStructReader.h
Index: lldb/trunk/include/lldb/Utility/ProcessStructReader.h
===================================================================
--- lldb/trunk/include/lldb/Utility/ProcessStructReader.h
+++ lldb/trunk/include/lldb/Utility/ProcessStructReader.h
@@ -63,7 +63,9 @@
// no support for things larger than a uint64_t (yet)
if (size > 8)
return;
- m_fields[ConstString(name.c_str())] = FieldImpl{field_type,static_cast<size_t>(bit_offset/8),static_cast<size_t>(size)};
+ 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};
}
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: D6702.17402.patch
Type: text/x-patch
Size: 908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141217/91fa0586/attachment.bin>
More information about the lldb-commits
mailing list