llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Brad Smith (brad0)

<details>
<summary>Changes</summary>

```
lldb/source/Host/netbsd/HostNetBSD.cpp:112:32: error: reinterpret_cast from 
'const uint8_t *' (aka 'const unsigned char *') to 'char *' casts away 
qualifiers
                              {reinterpret_cast&lt;char 
*&gt;(buffer_sp-&gt;GetBytes()),
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```

---
Full diff: https://github.com/llvm/llvm-project/pull/74190.diff


1 Files Affected:

- (modified) lldb/source/Host/netbsd/HostNetBSD.cpp (+1-1) 


``````````diff
diff --git a/lldb/source/Host/netbsd/HostNetBSD.cpp 
b/lldb/source/Host/netbsd/HostNetBSD.cpp
index c47b96a5ceda614..7e5dbcae8232d8c 100644
--- a/lldb/source/Host/netbsd/HostNetBSD.cpp
+++ b/lldb/source/Host/netbsd/HostNetBSD.cpp
@@ -109,7 +109,7 @@ static bool GetNetBSDProcessCPUType(ProcessInstanceInfo 
&process_info) {
         process_info.GetExecutableFile(), 0x20, 0);
     if (buffer_sp) {
       uint8_t exe_class = llvm::object::getElfArchType(
-                              {reinterpret_cast<char *>(buffer_sp->GetBytes()),
+                              {reinterpret_cast<const char 
*>(buffer_sp->GetBytes()),
                                size_t(buffer_sp->GetByteSize())})
                               .first;
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/74190
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to