On Jul 26, 2012, at 9:29 , jahanian <[email protected]> wrote: >> - for (Decl::redecl_iterator I = MD->redecls_begin(), E = >> MD->redecls_end(); >> - I != E; ++I) { >> - if (cast<ObjCMethodDecl>(*I)->isThisDeclarationADefinition()) >> - return *I; >> + const ObjCMessageExpr *E = getOriginExpr(); > > getOriginExpr may return null. You should check for that.
Right now it's safe to assume all ObjCMethodCalls have origin expressions, because all our implicit message sends are already abstracted using PseudoObjectExpr. I guess that may change in the future.
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
