diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-24 20:58:46 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-24 20:58:46 +0000 |
commit | 00c59f7ed2814f67d6d7e844479ea99eca9e55ef (patch) | |
tree | 6119dc2cbcec374c3318289d2493172fbb61b65f /lib/AST/CommentSema.cpp | |
parent | 42926a065572a63610f651bb1589fe1217e2e0a7 (diff) |
CommentSema: simplify functions, per Jordan's comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentSema.cpp')
-rw-r--r-- | lib/AST/CommentSema.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/AST/CommentSema.cpp b/lib/AST/CommentSema.cpp index bfc9b91b0a..8fa8ab7d06 100644 --- a/lib/AST/CommentSema.cpp +++ b/lib/AST/CommentSema.cpp @@ -370,18 +370,14 @@ void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { } bool Sema::isFunctionDecl() { - if (IsThisDeclInspected) - return IsFunctionDecl; - - inspectThisDecl(); + if (!IsThisDeclInspected) + inspectThisDecl(); return IsFunctionDecl; } ArrayRef<const ParmVarDecl *> Sema::getParamVars() { - if (IsThisDeclInspected) - return ParamVars; - - inspectThisDecl(); + if (!IsThisDeclInspected) + inspectThisDecl(); return ParamVars; } |