]> granicus.if.org Git - clang/commitdiff
Comment dumper: silence a warning by not casting away const
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 30 Jul 2012 17:52:50 +0000 (17:52 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 30 Jul 2012 17:52:50 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160972 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/CommentDumper.cpp

index 764492f94c2a0b8b4558913c59eeb72503bc628e..f02ea334cd71a1480bc6a8b61b40a6debadd5e0d 100644 (file)
@@ -75,7 +75,7 @@ void CommentDumper::dumpSourceRange(const Comment *C) {
 void CommentDumper::dumpComment(const Comment *C) {
   dumpIndent();
   OS << "(" << C->getCommentKindName()
-     << " " << (void *) C;
+     << " " << (const void *) C;
   dumpSourceRange(C);
 }