diff options
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; } |