aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-04-27 13:30:35 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-04-27 13:30:35 +0000
commit642e38baaeedb1a35c36df02a1ac57002a43a694 (patch)
treea67eb8dd5802a6a0fb6d378d5d8c52fdae848944 /lib/Sema/SemaDeclObjC.cpp
parent6e5977f0a8a680191fb4b4d8f32bc2c629faf0c2 (diff)
Use PushOnScopeChains to introduce a decl into scope.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 63c1350743..3b5be29730 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -62,10 +62,8 @@ void Sema::ObjCActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
for (unsigned i = 0, e = MDecl->getNumParams(); i != e; ++i) {
ParmVarDecl *PDecl = MDecl->getParamDecl(i);
IdentifierInfo *II = PDecl->getIdentifier();
- if (II) {
- IdResolver.AddDecl(PDecl, FnBodyScope);
- FnBodyScope->AddDecl(PDecl);
- }
+ if (II)
+ PushOnScopeChains(PDecl, FnBodyScope);
}
}