From 00c59f7ed2814f67d6d7e844479ea99eca9e55ef Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Tue, 24 Jul 2012 20:58:46 +0000 Subject: [PATCH] CommentSema: simplify functions, per Jordan's comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160689 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/CommentSema.cpp | 12 ++++-------- 1 file 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 Sema::getParamVars() { - if (IsThisDeclInspected) - return ParamVars; - - inspectThisDecl(); + if (!IsThisDeclInspected) + inspectThisDecl(); return ParamVars; } -- 2.50.1