llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Keith Smiley (keith)

<details>
<summary>Changes</summary>

This typedef doesn't match the signature below, specifically the signature 
takes a `lldb:SBDebugger` vs this was defined as `lldb:SBDebugger&amp;`.

```
lldb/source/API/SBDebugger.cpp:199:13: runtime error: call to function 
lldb::PluginInitialize(lldb::SBDebugger) through pointer to incorrect function 
type 'bool (*)(lldb::SBDebugger &amp;)'
.../CustomPlugin.cpp:134: note: lldb::PluginInitialize(lldb::SBDebugger) 
defined here
```

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


1 Files Affected:

- (modified) lldb/source/API/SBDebugger.cpp (+1-1) 


``````````diff
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 4e6b22492a0d1c2..bdb8e538b99f861 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -185,7 +185,7 @@ lldb::SBError SBDebugger::InitializeWithErrorHandling() {
     llvm::sys::DynamicLibrary dynlib =
         llvm::sys::DynamicLibrary::getPermanentLibrary(spec.GetPath().c_str());
     if (dynlib.isValid()) {
-      typedef bool (*LLDBCommandPluginInit)(lldb::SBDebugger & debugger);
+      typedef bool (*LLDBCommandPluginInit)(lldb::SBDebugger debugger);
 
       lldb::SBDebugger debugger_sb(debugger_sp);
       // This calls the bool lldb::PluginInitialize(lldb::SBDebugger debugger)

``````````

</details>


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

Reply via email to