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;
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits