[Lldb-commits] [lldb] r190616 - <rdar://problem/14944683>

Greg Clayton gclayton at apple.com
Thu Sep 12 10:22:32 PDT 2013


Author: gclayton
Date: Thu Sep 12 12:22:32 2013
New Revision: 190616

URL: http://llvm.org/viewvc/llvm-project?rev=190616&view=rev
Log:
<rdar://problem/14944683>

LLDB now handles explicit alignment for inherited classes.


Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=190616&r1=190615&r2=190616&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Thu Sep 12 12:22:32 2013
@@ -2214,12 +2214,12 @@ SymbolFileDWARF::ParseChildMembers
                         
                         if (is_virtual)
                         {
-                            layout_info.vbase_offsets.insert(std::make_pair(class_clang_type.GetAsCXXRecordDecl(),
+                            layout_info.vbase_offsets.insert(std::make_pair(base_class_clang_type.GetAsCXXRecordDecl(),
                                                                             clang::CharUnits::fromQuantity(member_byte_offset)));
                         }
                         else
                         {
-                            layout_info.base_offsets.insert(std::make_pair(class_clang_type.GetAsCXXRecordDecl(),
+                            layout_info.base_offsets.insert(std::make_pair(base_class_clang_type.GetAsCXXRecordDecl(),
                                                                            clang::CharUnits::fromQuantity(member_byte_offset)));
                         }
                     }





More information about the lldb-commits mailing list