Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType field to false.

llvm-svn: 44023
This commit is contained in:
Steve Naroff 2007-11-12 19:48:27 +00:00
parent cd002f5a0e
commit 040f696bfc
1 changed files with 1 additions and 0 deletions

View File

@ -981,6 +981,7 @@ void Sema::ObjcActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
// Insert the invisible arguments, self and _cmd!
PI.Ident = &Context.Idents.get("self");
PI.IdentLoc = SourceLocation(); // synthesized vars have a null location.
PI.InvalidType = false;
if (MDecl->isInstance()) {
QualType selfTy = Context.getObjcInterfaceType(MDecl->getClassInterface());
selfTy = Context.getPointerType(selfTy);