shafik added inline comments.

================
Comment at: lldb/tools/lldb-vscode/JSONUtils.cpp:925
     lldb::SBDeclaration declaration = v.GetDeclaration();
-    std::string file_name(declaration.GetFileSpec().GetFilename());
     const uint32_t line = declaration.GetLine();
----------------
wallace wrote:
> i had to change this because std::string(nullptr) throws on my machine
Yes, the `std::string` constructor taking a `const CharT*` expects a null 
terminated C-string.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101131/new/

https://reviews.llvm.org/D101131

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to