[Lldb-commits] [lldb] r252655 - Fixed a bug where the size of a type was used instead of the size of a pointer.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 10 13:48:06 PST 2015


Author: spyffe
Date: Tue Nov 10 15:48:05 2015
New Revision: 252655

URL: http://llvm.org/viewvc/llvm-project?rev=252655&view=rev
Log:
Fixed a bug where the size of a type was used instead of the size of a pointer.

Modified:
    lldb/trunk/source/Expression/Materializer.cpp

Modified: lldb/trunk/source/Expression/Materializer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/Materializer.cpp?rev=252655&r1=252654&r2=252655&view=diff
==============================================================================
--- lldb/trunk/source/Expression/Materializer.cpp (original)
+++ lldb/trunk/source/Expression/Materializer.cpp Tue Nov 10 15:48:05 2015
@@ -112,7 +112,7 @@ public:
                                                                               m_persistent_variable_sp->GetName(),
                                                                               mem,
                                                                               eAddressTypeLoad,
-                                                                              m_persistent_variable_sp->GetByteSize());
+                                                                              map.GetAddressByteSize());
         
         // Clear the flag if the variable will never be deallocated.
         




More information about the lldb-commits mailing list