diff options
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
| -rw-r--r-- | clang/lib/AST/DeclBase.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index c0655cf9ceb..2bfb5ae6075 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -365,8 +365,5 @@ const DeclContext *DeclContext::getParent() const { const DeclContext *DeclContext::getLexicalParent() const { if (const ScopedDecl *SD = dyn_cast<ScopedDecl>(this)) return SD->getLexicalDeclContext(); - else if (const BlockDecl *BD = dyn_cast<BlockDecl>(this)) - return BD->getParentContext(); - else - return NULL; + return getParent(); } |

