forked from OSchip/llvm-project
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 llvm-svn: 281525
This commit is contained in:
parent
6bfc863d74
commit
93f75c785d
|
@ -84,7 +84,7 @@ public:
|
||||||
bool isDeclGroup() const { return getKind() == DeclGroupKind; }
|
bool isDeclGroup() const { return getKind() == DeclGroupKind; }
|
||||||
|
|
||||||
Decl *getSingleDecl() {
|
Decl *getSingleDecl() {
|
||||||
assert(isSingleDecl() && "Isn't a declgroup");
|
assert(isSingleDecl() && "Isn't a single decl");
|
||||||
return D;
|
return D;
|
||||||
}
|
}
|
||||||
const Decl *getSingleDecl() const {
|
const Decl *getSingleDecl() const {
|
||||||
|
|
Loading…
Reference in New Issue