From: Dmitri Gribenko Date: Tue, 24 Jul 2012 20:58:46 +0000 (+0000) Subject: CommentSema: simplify functions, per Jordan's comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00c59f7ed2814f67d6d7e844479ea99eca9e55ef;p=clang CommentSema: simplify functions, per Jordan's comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160689 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 Sema::getParamVars() { - if (IsThisDeclInspected) - return ParamVars; - - inspectThisDecl(); + if (!IsThisDeclInspected) + inspectThisDecl(); return ParamVars; }