summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Bobyrev <omtcyfz@gmail.com>2016-09-14 19:59:26 +0000
committerKirill Bobyrev <omtcyfz@gmail.com>2016-09-14 19:59:26 +0000
commit2da0fd17d34c97f5057bbd074a466987e63a1b97 (patch)
tree154ce216d33ef8151af5bcbeb807918ebe99b507
parent82d5b51ee7e451c8672c60b4d96a8ba6db6f71e1 (diff)
Correct assert text in DeclGroup::getSingleDecl()
Assert text for getSingleDecl() is inaccurate. Appears to have been copy pasted from getDeclGroup(). Patch by Ben Taylor! Reviewers: alexfh Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24518 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281525 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/DeclGroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/DeclGroup.h b/include/clang/AST/DeclGroup.h
index c84bb5e604..6353b26f7b 100644
--- a/include/clang/AST/DeclGroup.h
+++ b/include/clang/AST/DeclGroup.h
@@ -84,7 +84,7 @@ public:
bool isDeclGroup() const { return getKind() == DeclGroupKind; }
Decl *getSingleDecl() {
- assert(isSingleDecl() && "Isn't a declgroup");
+ assert(isSingleDecl() && "Isn't a single decl");
return D;
}
const Decl *getSingleDecl() const {