[Lldb-commits] [PATCH] D136890: [lldb-vscode] Don't call SBValue.GetError after generating a summary.
jeffrey tan via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 27 16:11:49 PDT 2022
yinghuitan added inline comments.
================
Comment at: lldb/tools/lldb-vscode/JSONUtils.cpp:143
+ llvm::StringRef value = v.GetValue();
+ llvm::StringRef summary = v.GetSummary();
+ llvm::StringRef type_name = v.GetType().GetDisplayTypeName();
----------------
Sorry for the late comment. The fix is fine but it depends on an important assumption that GetError() has to be called before GetSummary(). Can we add an explicit comment to document this so that future refactoring won't violate it again.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136890/new/
https://reviews.llvm.org/D136890
More information about the lldb-commits
mailing list