[PATCH] D24518: Correct assert text in DeclGroup::getSingleDecl()

Ben Taylor via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 13 11:59:30 PDT 2016


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 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24518.71188.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160913/c06ed36f/attachment.bin>


More information about the cfe-commits mailing list