]> granicus.if.org Git - clang/commitdiff
Added assert to the rewrite.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 26 Jan 2010 20:37:44 +0000 (20:37 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 26 Jan 2010 20:37:44 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94584 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/RewriteObjC.cpp

index fbd68569ff6de0ecf71ca084d6d399c239affcdf..c56055599ba024c141c4cec35a76afd7a8bf1af8 100644 (file)
@@ -1216,6 +1216,7 @@ Stmt *RewriteObjC::RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV,
     if (BaseExpr->getType()->isObjCObjectPointerType()) {
       ObjCInterfaceType *iFaceDecl =
         dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType());
+      assert(iFaceDecl && "RewriteObjCIvarRefExpr - iFaceDecl is null");
       // lookup which class implements the instance variable.
       ObjCInterfaceDecl *clsDeclared = 0;
       iFaceDecl->getDecl()->lookupInstanceVariable(D->getIdentifier(),