[Lldb-commits] [lldb] [LLDB][Value] Require type size when reading a scalar (PR #153386)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 14 06:31:05 PDT 2025


================
@@ -347,6 +347,9 @@ Status Value::GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data,
     else
       data.SetAddressByteSize(sizeof(void *));
 
+    if (!type_size)
+      return Status::FromErrorString("type does not have a size");
----------------
labath wrote:

I don't know about the rest, but testing something about the ValueObject class inside ScalarTest.cpp sounds very wrong.

https://github.com/llvm/llvm-project/pull/153386


More information about the lldb-commits mailing list