[Lldb-commits] [lldb] 12284e5 - [lldb] fix a -Wcast-qual warning

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 26 05:49:38 PST 2019


Author: Pavel Labath
Date: 2019-11-26T14:49:16+01:00
New Revision: 12284e54b483c2541eb09cd7c575f438970b66c1

URL: https://github.com/llvm/llvm-project/commit/12284e54b483c2541eb09cd7c575f438970b66c1
DIFF: https://github.com/llvm/llvm-project/commit/12284e54b483c2541eb09cd7c575f438970b66c1.diff

LOG: [lldb] fix a -Wcast-qual warning

Added: 
    

Modified: 
    lldb/tools/driver/Driver.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp
index fe4a17762f8b..e13507be22da 100644
--- a/lldb/tools/driver/Driver.cpp
+++ b/lldb/tools/driver/Driver.cpp
@@ -854,7 +854,7 @@ int main(int argc, char const *argv[]) {
   }
 
   // Register the reproducer signal handler.
-  llvm::sys::AddSignalHandler(reproducer_handler, (void *)(argv[0]));
+  llvm::sys::AddSignalHandler(reproducer_handler, const_cast<char *>(argv[0]));
 
   SBError error = SBDebugger::InitializeWithErrorHandling();
   if (error.Fail()) {


        


More information about the lldb-commits mailing list