diff options
| author | Steve Naroff <snaroff@apple.com> | 2007-09-16 16:16:00 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2007-09-16 16:16:00 +0000 |
| commit | 2f742085f51fb2c63b1ab65ce155f3d73c5e0c20 (patch) | |
| tree | 241b86e50f5441738f2b93ed649894a134b9b8e3 /clang/Sema/SemaDecl.cpp | |
| parent | 66356bda5d49f1b4c65a92c628a3ef08a4351edc (diff) | |
| download | bcm5719-llvm-2f742085f51fb2c63b1ab65ce155f3d73c5e0c20.tar.gz bcm5719-llvm-2f742085f51fb2c63b1ab65ce155f3d73c5e0c20.zip | |
Fixes/tweaks that prevent "defaults-i.m" from compiling.
- Allow classnames as the receiver (removing a FIXME from ParseObjCMessageExpression).
- Added a FIXME to ParseObjCMessageExpression()...we need to return a message expr AST node!
llvm-svn: 42001
Diffstat (limited to 'clang/Sema/SemaDecl.cpp')
| -rw-r--r-- | clang/Sema/SemaDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp index b792b525cc4..16d72130f5a 100644 --- a/clang/Sema/SemaDecl.cpp +++ b/clang/Sema/SemaDecl.cpp @@ -815,8 +815,8 @@ Sema::DeclTy *Sema::ParseFunctionDefBody(DeclTy *D, StmtTy *Body) { /// ImplicitlyDefineFunction - An undeclared identifier was used in a function /// call, forming a call to an implicitly defined function (per C99 6.5.1p2). -Decl *Sema::ImplicitlyDefineFunction(SourceLocation Loc, IdentifierInfo &II, - Scope *S) { +ScopedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc, + IdentifierInfo &II, Scope *S) { if (getLangOptions().C99) // Extension in C99. Diag(Loc, diag::ext_implicit_function_decl, II.getName()); else // Legal in C90, but warn about it. @@ -842,7 +842,7 @@ Decl *Sema::ImplicitlyDefineFunction(SourceLocation Loc, IdentifierInfo &II, while (S->getParent()) S = S->getParent(); - return static_cast<Decl*>(ActOnDeclarator(S, D, 0)); + return dyn_cast<ScopedDecl>(static_cast<Decl*>(ActOnDeclarator(S, D, 0))); } |

