diff options
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 428610f04d6..d6dcaf2b9ae 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -275,9 +275,7 @@ private: /// CurMethodDecl - If inside of a method body, this returns a pointer to /// the method decl for the method being parsed. - ObjCMethodDecl *getCurMethodDecl() { - return dyn_cast<ObjCMethodDecl>(CurContext); - } + ObjCMethodDecl *getCurMethodDecl(); /// Add this decl to the scope shadowed decl chains. void PushOnScopeChains(NamedDecl *D, Scope *S); |