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 bfc9b91..8fa8ab7 100644
--- a/lib/AST/CommentSema.cpp
+++ b/lib/AST/CommentSema.cpp
@@ -370,18 +370,14 @@
 }
 
 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;
 }