forked from OSchip/llvm-project
Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType field to false.
llvm-svn: 44023
This commit is contained in:
parent
cd002f5a0e
commit
040f696bfc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue