[cfe-commits] r44023 - /cfe/trunk/Sema/SemaDecl.cpp

Steve Naroff snaroff at apple.com
Mon Nov 12 11:48:27 PST 2007


Author: snaroff
Date: Mon Nov 12 13:48:27 2007
New Revision: 44023

URL: http://llvm.org/viewvc/llvm-project?rev=44023&view=rev
Log:

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


Modified:
    cfe/trunk/Sema/SemaDecl.cpp

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=44023&r1=44022&r2=44023&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Mon Nov 12 13:48:27 2007
@@ -981,6 +981,7 @@
   // 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);





More information about the cfe-commits mailing list