[Lldb-commits] [lldb] r252233 - One more debug-build assert that addr_size is
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 5 15:41:49 PST 2015
Author: jmolenda
Date: Thu Nov 5 17:41:49 2015
New Revision: 252233
URL: http://llvm.org/viewvc/llvm-project?rev=252233&view=rev
Log:
One more debug-build assert that addr_size is
a realistic value.
Modified:
lldb/trunk/include/lldb/Core/DataExtractor.h
Modified: lldb/trunk/include/lldb/Core/DataExtractor.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/DataExtractor.h?rev=252233&r1=252232&r2=252233&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/DataExtractor.h (original)
+++ lldb/trunk/include/lldb/Core/DataExtractor.h Thu Nov 5 17:41:49 2015
@@ -1152,6 +1152,9 @@ public:
void
SetAddressByteSize (uint32_t addr_size)
{
+#ifdef LLDB_CONFIGURATION_DEBUG
+ assert (addr_size == 4 || addr_size == 8);
+#endif
m_addr_size = addr_size;
}
More information about the lldb-commits
mailing list