aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 240e6c7a68..a688c6e2d0 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -53,12 +53,12 @@ void Sema::ObjCActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
}
} else // we have a factory method.
selfTy = Context.getObjCClassType();
- CurMethodDecl->setSelfDecl(CreateImplicitParameter(FnBodyScope, PI.Ident,
- PI.IdentLoc, selfTy));
+ CurMethodDecl->setSelfDecl(CreateImplicitParameter(FnBodyScope,
+ PI.Ident, PI.IdentLoc, selfTy));
PI.Ident = &Context.Idents.get("_cmd");
- CreateImplicitParameter(FnBodyScope, PI.Ident, PI.IdentLoc,
- Context.getObjCSelType());
+ CurMethodDecl->setCmdDecl(CreateImplicitParameter(FnBodyScope,
+ PI.Ident, PI.IdentLoc, Context.getObjCSelType()));
// Introduce all of the other parameters into this scope.
for (unsigned i = 0, e = MDecl->getNumParams(); i != e; ++i) {