summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CommentSema.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-24 20:58:46 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-24 20:58:46 +0000
commit52cb2181492ddd58a51a0069c80c43a8dcc93c7a (patch)
tree919ab333111e517ea5b3bc9d811980de2789fb00 /clang/lib/AST/CommentSema.cpp
parent7ac3c6af87e479f1f28eb4b71d7aa053c456e711 (diff)
downloadbcm5719-llvm-52cb2181492ddd58a51a0069c80c43a8dcc93c7a.tar.gz
bcm5719-llvm-52cb2181492ddd58a51a0069c80c43a8dcc93c7a.zip
CommentSema: simplify functions, per Jordan's comment.
llvm-svn: 160689
Diffstat (limited to 'clang/lib/AST/CommentSema.cpp')
-rw-r--r--clang/lib/AST/CommentSema.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/clang/lib/AST/CommentSema.cpp b/clang/lib/AST/CommentSema.cpp
index bfc9b91b0a2..8fa8ab7d06f 100644
--- a/clang/lib/AST/CommentSema.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud