[cfe-commits] r50320 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Sun Apr 27 06:30:37 PDT 2008
Author: akirtzidis
Date: Sun Apr 27 08:30:35 2008
New Revision: 50320
URL: http://llvm.org/viewvc/llvm-project?rev=50320&view=rev
Log:
Use PushOnScopeChains to introduce a decl into scope.
Modified:
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=50320&r1=50319&r2=50320&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Sun Apr 27 08:30:35 2008
@@ -62,10 +62,8 @@
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);
}
}
More information about the cfe-commits
mailing list