Author: omtcyfz Date: Wed Sep 14 14:59:26 2016 New Revision: 281525 URL: http://llvm.org/viewvc/llvm-project?rev=281525&view=rev Log: 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 Modified: cfe/trunk/include/clang/AST/DeclGroup.h Modified: cfe/trunk/include/clang/AST/DeclGroup.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclGroup.h?rev=281525&r1=281524&r2=281525&view=diff ============================================================================== --- cfe/trunk/include/clang/AST/DeclGroup.h (original) +++ cfe/trunk/include/clang/AST/DeclGroup.h Wed Sep 14 14:59:26 2016 @@ -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 { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits