]> granicus.if.org Git - clang/commitdiff
Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType...
authorSteve Naroff <snaroff@apple.com>
Mon, 12 Nov 2007 19:48:27 +0000 (19:48 +0000)
committerSteve Naroff <snaroff@apple.com>
Mon, 12 Nov 2007 19:48:27 +0000 (19:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44023 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaDecl.cpp

index 62089141cbc03dca51306908c893a506925e3d82..cd47b94c198ba38c87a1c5d94bf9e28c2e3aa838 100644 (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);