forked from OSchip/llvm-project
parent
8d92ec45c7
commit
4e16d05dc4
|
@ -226,8 +226,7 @@ void ASTRecordLayoutBuilder::LayoutVirtualBases(const CXXRecordDecl *Class,
|
|||
if (RD == Class)
|
||||
BaseOffset = getBaseOffset(Base);
|
||||
else {
|
||||
const ASTRecordLayout &Layout
|
||||
= Ctx.getASTRecordLayout(RD);
|
||||
const ASTRecordLayout &Layout = Ctx.getASTRecordLayout(RD);
|
||||
BaseOffset = Offset + Layout.getBaseClassOffset(Base);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue