brtaylor92 created this revision. brtaylor92 added reviewers: alexfh, craig.topper. brtaylor92 added a subscriber: cfe-commits.
Assert text for getSingleDecl() is inaccurate. Appears to have been copy pasted from getDeclGroup() https://reviews.llvm.org/D24518 Files: include/clang/AST/DeclGroup.h Index: include/clang/AST/DeclGroup.h =================================================================== --- include/clang/AST/DeclGroup.h +++ include/clang/AST/DeclGroup.h @@ -84,7 +84,7 @@ 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 {
Index: include/clang/AST/DeclGroup.h =================================================================== --- include/clang/AST/DeclGroup.h +++ include/clang/AST/DeclGroup.h @@ -84,7 +84,7 @@ 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