Skip to content

Commit 3b7e326

Browse files
committed
Do not provide memory references for arrays. Dereference did not work anyway
1 parent cd708b9 commit 3b7e326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/JSONUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ std::string VariableDescription::GetResult(llvm::StringRef context) {
11961196
}
11971197

11981198
std::optional<lldb::addr_t> GetMemoryReference(lldb::SBValue v) {
1199-
if (!v.GetType().IsPointerType() && !v.GetType().IsArrayType())
1199+
if (!v.GetType().IsPointerType())
12001200
return std::nullopt;
12011201

12021202
lldb::SBValue deref = v.Dereference();

0 commit comments

Comments
 (0)