[Lldb-commits] [lldb] [lldb][FreeBSD] Adopt file_t for closeFile() (PR #226290)

Minsoo Choo via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 24 13:51:13 PDT 2026


mchoo7 wrote:

> Do you have build log for this? What error did you see? This should be implicitly converted, isn't it?

```console
/home/mchoo/llvm/main/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp:1066:31: error: no matching function for call to 'closeFile'
 1066 |   std::error_code close_err = closeFile(pc.pc_fd);
      |                               ^~~~~~~~~
/home/mchoo/llvm/main/llvm/include/llvm/Support/FileSystem.h:1255:26: note: candidate function not viable: no known conversion from 'int' to 'file_t &' for 1st argument
 1255 | LLVM_ABI std::error_code closeFile(file_t &F);
      |                          ^         ~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
```

https://github.com/llvm/llvm-project/pull/226290


More information about the lldb-commits mailing list