n.bozhenov created this revision.

https://reviews.llvm.org/rL314336 introduced a new compile time warning about 
casting a const pointer to void*. Because of that the compiler fails to be 
built with `-Werror` flag. The suggested patch fixes the issue.


https://reviews.llvm.org/D38366

Files:
  clang/lib/AST/ExternalASTMerger.cpp


Index: clang/lib/AST/ExternalASTMerger.cpp
===================================================================
--- clang/lib/AST/ExternalASTMerger.cpp
+++ clang/lib/AST/ExternalASTMerger.cpp
@@ -212,7 +212,7 @@
     }
     if (!DidCallback && LoggingEnabled())
       logs() << "(ExternalASTMerger*)" << (void*)this
-             << " asserting for (DeclContext*)" << (void*)DC
+             << " asserting for (DeclContext*)" << (const void*)DC
              << ", (ASTContext*)" << (void*)&Target.AST
              << "\n";
     assert(DidCallback && "Couldn't find a source context matching our DC");


Index: clang/lib/AST/ExternalASTMerger.cpp
===================================================================
--- clang/lib/AST/ExternalASTMerger.cpp
+++ clang/lib/AST/ExternalASTMerger.cpp
@@ -212,7 +212,7 @@
     }
     if (!DidCallback && LoggingEnabled())
       logs() << "(ExternalASTMerger*)" << (void*)this
-             << " asserting for (DeclContext*)" << (void*)DC
+             << " asserting for (DeclContext*)" << (const void*)DC
              << ", (ASTContext*)" << (void*)&Target.AST
              << "\n";
     assert(DidCallback && "Couldn't find a source context matching our DC");
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D38366: Fix a war... Nikolai Bozhenov via Phabricator via cfe-commits

Reply via email to