summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-17 18:05:57 +0000
committerChris Lattner <sabre@nondot.org>2008-06-17 18:05:57 +0000
commit5696e7badf181efd93355bd55718f422252362b0 (patch)
tree9562bea195fea80d837014b9707e87a8fab94013 /clang/lib/Sema/SemaDecl.cpp
parent5e4188f1acd814dff1f2155c05576f8892223c40 (diff)
downloadbcm5719-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.cpp6
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);
OpenPOWER on IntegriCloud