[cfe-commits] r68877 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Chris Lattner
sabre at nondot.org
Sat Apr 11 12:42:43 PDT 2009
Author: lattner
Date: Sat Apr 11 14:42:43 2009
New Revision: 68877
URL: http://llvm.org/viewvc/llvm-project?rev=68877&view=rev
Log:
Set proper location info on objc method arguments.
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=68877&r1=68876&r2=68877&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Sat Apr 11 14:42:43 2009
@@ -1431,8 +1431,7 @@
llvm::SmallVector<ParmVarDecl*, 16> Params;
- for (unsigned i = 0; i < Sel.getNumArgs(); i++) {
- // FIXME: arg->AttrList must be stored too!
+ for (unsigned i = 0, e = Sel.getNumArgs(); i != e; ++i) {
QualType ArgType, UnpromotedArgType;
if (ArgInfo[i].Type == 0) {
@@ -1445,13 +1444,12 @@
ParmVarDecl* Param;
if (ArgType == UnpromotedArgType)
- Param = ParmVarDecl::Create(Context, ObjCMethod,
- SourceLocation(/*FIXME*/),
+ Param = ParmVarDecl::Create(Context, ObjCMethod, ArgInfo[i].NameLoc,
ArgInfo[i].Name, ArgType,
VarDecl::None, 0);
else
Param = OriginalParmVarDecl::Create(Context, ObjCMethod,
- SourceLocation(/*FIXME*/),
+ ArgInfo[i].NameLoc,
ArgInfo[i].Name, ArgType,
UnpromotedArgType,
VarDecl::None, 0);
More information about the cfe-commits
mailing list