From bd278bc1a52657cd22140c50db4a5646e65bd89c Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Mon, 12 Nov 2007 19:48:27 +0000 Subject: [PATCH] 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 --- Sema/SemaDecl.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.40.0