Comments AST: refactor DeclInfo to use an enum for decl kind instead of
separate flags.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161217 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/CommentSema.cpp b/lib/AST/CommentSema.cpp
index cedc72a..cbfbc4e 100644
--- a/lib/AST/CommentSema.cpp
+++ b/lib/AST/CommentSema.cpp
@@ -477,7 +477,7 @@
return false;
if (!ThisDeclInfo->IsFilled)
inspectThisDecl();
- return ThisDeclInfo->IsFunctionDecl;
+ return ThisDeclInfo->getKind() == DeclInfo::FunctionKind;
}
bool Sema::isTemplateDecl() {