================
@@ -554,7 +554,8 @@ llvm::json::Value CreateStackFrame(DAP &dap, lldb::SBFrame
&frame,
lldb::SBModule module = frame.GetModule();
if (module.IsValid()) {
- std::string uuid = module.GetUUIDString();
+ const char *uuid_cstr = module.GetUUIDString();
+ std::string uuid = uuid_cstr ? uuid_cstr : "";
if (!uuid.empty())
----------------
DavidSpickett wrote:
You could instead do:
```
if (uuid_cstr) {
..., std::string(uuid_cstr)
```
https://github.com/llvm/llvm-project/pull/169844
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits