diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-10-31 23:53:01 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-10-31 23:53:01 +0000 |
commit | f1de0ca05e2df6f23bd559028693a12d1ebdaaf6 (patch) | |
tree | d96d939dd0bca45a74bd3165e9b6b8ba586b87f5 /Sema/SemaDecl.cpp | |
parent | 50b5a30db40322880340e957ad7d6d8d60bb4c5b (diff) |
1) More additions for objective-c's qualifier type.
2) Fixed a test failure (which should have failed all along!).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/SemaDecl.cpp')
-rw-r--r-- | Sema/SemaDecl.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index 66ece4149a..0d993b8fcc 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -1288,6 +1288,9 @@ void Sema::CheckImplementationIvars(ObjcImplementationDecl *ImpDecl, IDecl->addInstanceVariablesToClass(ivars, numIvars, RBrace); return; } + // If implementation has empty ivar list, just return. + if (numIvars == 0) + return; assert(ivars && "missing @implementation ivars"); @@ -1967,10 +1970,11 @@ void Sema::ActOnAddMethodsToObjcDecl(Scope* S, DeclTy *classDecl, Sema::DeclTy *Sema::ActOnMethodDeclaration( SourceLocation MethodLoc, SourceLocation EndLoc, - tok::TokenKind MethodType, TypeTy *ReturnType, Selector Sel, + tok::TokenKind MethodType, ObjcDeclSpec &ReturnQT, TypeTy *ReturnType, + Selector Sel, // optional arguments. The number of types/arguments is obtained // from the Sel.getNumArgs(). - TypeTy **ArgTypes, IdentifierInfo **ArgNames, + ObjcDeclSpec *ArgQT, TypeTy **ArgTypes, IdentifierInfo **ArgNames, AttributeList *AttrList, tok::ObjCKeywordKind MethodDeclKind) { llvm::SmallVector<ParmVarDecl*, 16> Params; |