[lldb-vscode] Don't call SBValue.GetError after generating a summary.
authorJorge Gorbe Moya <jgorbe@google.com>
Thu, 27 Oct 2022 21:48:44 +0000 (14:48 -0700)
committerJorge Gorbe Moya <jgorbe@google.com>
Thu, 27 Oct 2022 22:05:27 +0000 (15:05 -0700)
commit7d4d25c42a682ec5abcc008225268a6ce82673f3
treed0a71f078f16f4a1c0cfd71b607169baea7ff7a9
parent41ed9d02977bb9f6f0c85bafab7db9e2d9b3f9af
[lldb-vscode] Don't call SBValue.GetError after generating a summary.

In some occasions, SBValue::GetError can invalidate its cached
`m_summary_str` member. This in turn invalidates any StringRef variables
pointing to it.

Differential Revision: https://reviews.llvm.org/D136890
lldb/tools/lldb-vscode/JSONUtils.cpp