diff options
| author | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-09-14 19:59:26 +0000 |
|---|---|---|
| committer | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-09-14 19:59:26 +0000 |
| commit | 93f75c785d0175dd336c6e164a52efe991c0ddc8 (patch) | |
| tree | a240fd98913c4bb04c2727549f28163de230577a | |
| parent | 6bfc863d741a9419017a11060417aa0b71664f76 (diff) | |
| download | bcm5719-llvm-93f75c785d0175dd336c6e164a52efe991c0ddc8.tar.gz bcm5719-llvm-93f75c785d0175dd336c6e164a52efe991c0ddc8.zip | |
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
| -rw-r--r-- | clang/include/clang/AST/DeclGroup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/AST/DeclGroup.h b/clang/include/clang/AST/DeclGroup.h index c84bb5e6048..6353b26f7bf 100644 --- a/clang/include/clang/AST/DeclGroup.h +++ b/clang/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 { |

