diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-04-02 22:29:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-04-02 22:29:40 +0000 |
commit | 7e5aba433d0e82b62cb51b6802231595552678ac (patch) | |
tree | 8fbbaaad88233076e5ec5ecaf13df709669e651a | |
parent | 8f0be43669a2dfa922396c2dec39b6e0ae1fe708 (diff) | |
download | bcm5719-llvm-7e5aba433d0e82b62cb51b6802231595552678ac.tar.gz bcm5719-llvm-7e5aba433d0e82b62cb51b6802231595552678ac.zip |
IRgen/NeXT: Remove my refactoring-enabling asserts, and add a FIXME.
llvm-svn: 100237
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 0838a57241c..5373390ef7e 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -48,18 +48,9 @@ static uint64_t LookupFieldBitOffset(CodeGen::CodeGenModule &CGM, const ObjCIvarDecl *Ivar) { const ObjCInterfaceDecl *Container = Ivar->getContainingInterface(); - // Check that the Obj-C decl contexts match what we expect. - const ObjCContainerDecl *DC = cast<ObjCContainerDecl>(Ivar->getDeclContext()); - assert(isa<ObjCInterfaceDecl>(DC) || isa<ObjCImplDecl>(DC) || - isa<ObjCCategoryDecl>(DC)); - if (isa<ObjCImplDecl>(DC)) { - assert(DC == ID); - assert(Container == cast<ObjCImplDecl>(DC)->getClassInterface()); - } else if (isa<ObjCCategoryDecl>(DC)) { - assert(Container == cast<ObjCCategoryDecl>(DC)->getClassInterface()); - } else { - assert(Container == DC); - } + // FIXME: We should eliminate the need to have ObjCImplementationDecl passed + // in here; it should never be necessary because that should be the lexical + // decl context for the ivar. // If we know have an implementation (and the ivar is in it) then // look up in the implementation layout. |