[cfe-commits] r160689 - /cfe/trunk/lib/AST/CommentSema.cpp

Dmitri Gribenko gribozavr at gmail.com
Tue Jul 24 13:58:46 PDT 2012


Author: gribozavr
Date: Tue Jul 24 15:58:46 2012
New Revision: 160689

URL: http://llvm.org/viewvc/llvm-project?rev=160689&view=rev
Log:
CommentSema: simplify functions, per Jordan's comment.

Modified:
    cfe/trunk/lib/AST/CommentSema.cpp

Modified: cfe/trunk/lib/AST/CommentSema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CommentSema.cpp?rev=160689&r1=160688&r2=160689&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CommentSema.cpp (original)
+++ cfe/trunk/lib/AST/CommentSema.cpp Tue Jul 24 15:58:46 2012
@@ -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;
 }
 





More information about the cfe-commits mailing list