diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-12-15 20:35:07 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-12-15 20:35:07 +0000 |
commit | fd64bb635dc221baa19f81d5d2a084f7eb269f7f (patch) | |
tree | cc7de8b7ad8802f40468ace0b831c274ca97109e /lib/AST/DeclObjC.cpp | |
parent | 0ea76727ae91bca918a8414ed85b530eddcfedeb (diff) |
Code gen. for ivar references; including bitfield
ivars.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index 27e6a6df65..50f45e8579 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -367,7 +367,7 @@ void ObjCInterfaceDecl::addInstanceVariablesToClass(ObjCIvarDecl **ivars, /// storage which matches this 'ivar'. /// FieldDecl *ObjCInterfaceDecl::lookupFieldDeclForIvar(ASTContext &Context, - ObjCIvarDecl *ivar) { + const ObjCIvarDecl *ivar) { assert(RecordForDecl && "lookupFieldDeclForIvar no storage for class"); DeclarationName Member = ivar->getDeclName(); DeclContext::lookup_result Lookup = RecordForDecl->lookup(Context, Member); @@ -392,7 +392,8 @@ void ObjCInterfaceDecl::addLayoutToClass(ASTContext &Context) for (unsigned int i = 0; i != RecFields.size(); i++) { FieldDecl *Field = FieldDecl::Create(Context, RD, SourceLocation(), RecFields[i]->getIdentifier(), - RecFields[i]->getType(), 0, false, 0); + RecFields[i]->getType(), + RecFields[i]->getBitWidth(), false, 0); RD->addDecl(Context, Field); } RD->completeDefinition(Context); |