[Lldb-commits] [PATCH] D101131: [lldb-vscode] Follow up of D99989 - store some strings more safely

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 27 20:51:01 PDT 2021


wallace 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();
----------------
i had to change this because std::string(nullptr) throws on my machine


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

https://reviews.llvm.org/D101131



More information about the lldb-commits mailing list