Browse Source

Use the full offset to the vftable pointer when getting its vftable layouts.

pull/68/merge
triton 13 years ago
parent
commit
d34af322ed
  1. 2
      src/Parser/Parser.cpp

2
src/Parser/Parser.cpp

@ -502,7 +502,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C) @@ -502,7 +502,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C)
Info.VFPtrOffset = VFPtrInfo.VFPtrOffset.getQuantity();
Info.VFPtrFullOffset = VFPtrInfo.VFPtrFullOffset.getQuantity();
auto& VTLayout = VTContext.getVFTableLayout(RD, VFPtrInfo.VFPtrOffset);
auto& VTLayout = VTContext.getVFTableLayout(RD, VFPtrInfo.VFPtrFullOffset);
Info.Layout = WalkVTableLayout(VTLayout);
C->Layout->VFTables->Add(Info);

Loading…
Cancel
Save