diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
commit | 5696e7badf181efd93355bd55718f422252362b0 (patch) | |
tree | 9562bea195fea80d837014b9707e87a8fab94013 /clang/lib/Sema/SemaDecl.cpp | |
parent | 5e4188f1acd814dff1f2155c05576f8892223c40 (diff) | |
download | bcm5719-llvm-5696e7badf181efd93355bd55718f422252362b0.tar.gz bcm5719-llvm-5696e7badf181efd93355bd55718f422252362b0.zip |
Change self/_cmd to be instances of ImplicitParamDecl instead of ParmVarDecl.
Patch by David Chisnall!
llvm-svn: 52422
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 0bab523043c..7af557b1a80 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -480,11 +480,11 @@ bool Sema::CheckParmsForFunctionDef(FunctionDecl *FD) { /// 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); |