Change self/_cmd to be instances of ImplicitParamDecl instead of ParmVarDecl.
Patch by David Chisnall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52422 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 0bab523..7af557b 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -480,11 +480,11 @@
/// in the scope S and with the given type. This routine is used, for
/// example, to create the implicit "self" parameter in an Objective-C
/// method.
-ParmVarDecl *
+ImplicitParamDecl *
Sema::CreateImplicitParameter(Scope *S, IdentifierInfo *Id,
SourceLocation IdLoc, QualType Type) {
- ParmVarDecl *New = ParmVarDecl::Create(Context, CurContext, IdLoc, Id, Type,
- VarDecl::None, 0, 0);
+ ImplicitParamDecl *New = ImplicitParamDecl::Create(Context, CurContext,
+ IdLoc, Id, Type, 0);
if (Id)
PushOnScopeChains(New, S);