Fix build.

llvm-svn: 104682
This commit is contained in:
Anders Carlsson 2010-05-26 05:25:15 +00:00
parent d20e7cd3c6
commit 1d1e4cf04d
1 changed files with 4 additions and 2 deletions

View File

@ -24,8 +24,8 @@ using namespace clang;
ASTRecordLayoutBuilder::ASTRecordLayoutBuilder(ASTContext &Context) ASTRecordLayoutBuilder::ASTRecordLayoutBuilder(ASTContext &Context)
: Context(Context), Size(0), Alignment(8), Packed(false), : Context(Context), Size(0), Alignment(8), Packed(false),
UnfilledBitsInLastByte(0), MaxFieldAlignment(0), DataSize(0), IsUnion(false), UnfilledBitsInLastByte(0), MaxFieldAlignment(0), DataSize(0), IsUnion(false),
PrimaryBase(0), PrimaryBaseIsVirtual(false), NonVirtualSize(0), NonVirtualSize(0), NonVirtualAlignment(8), PrimaryBase(0),
NonVirtualAlignment(8), FirstNearlyEmptyVBase(0), PrimaryBaseIsVirtual(false), FirstNearlyEmptyVBase(0),
SizeOfLargestEmptySubobject(0) { } SizeOfLargestEmptySubobject(0) { }
/// IsNearlyEmpty - Indicates when a class has a vtable pointer, but /// IsNearlyEmpty - Indicates when a class has a vtable pointer, but
@ -911,6 +911,7 @@ ASTRecordLayoutBuilder::ComputeLayout(ASTContext &Ctx,
Builder.NonVirtualAlignment, Builder.NonVirtualAlignment,
Builder.SizeOfLargestEmptySubobject, Builder.SizeOfLargestEmptySubobject,
Builder.PrimaryBase, Builder.PrimaryBase,
Builder.PrimaryBaseIsVirtual,
Builder.Bases, Builder.VBases); Builder.Bases, Builder.VBases);
} }
@ -994,6 +995,7 @@ const ASTRecordLayout &ASTContext::getASTRecordLayout(const RecordDecl *D) {
Builder.NonVirtualAlignment, Builder.NonVirtualAlignment,
Builder.SizeOfLargestEmptySubobject, Builder.SizeOfLargestEmptySubobject,
Builder.PrimaryBase, Builder.PrimaryBase,
Builder.PrimaryBaseIsVirtual,
Builder.Bases, Builder.VBases); Builder.Bases, Builder.VBases);
} else { } else {
ASTRecordLayoutBuilder Builder(*this); ASTRecordLayoutBuilder Builder(*this);