From: Steve Naroff Date: Mon, 12 Nov 2007 19:48:27 +0000 (+0000) Subject: Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd278bc1a52657cd22140c50db4a5646e65bd89c;p=clang Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType field to false. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44023 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index 62089141cb..cd47b94c19 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -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);