[Lldb-commits] [lldb] Fix r598213 (PR #169232)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Nov 23 11:32:10 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Walter Lee (googlewalt)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/169232.diff
1 Files Affected:
- (modified) lldb/unittests/Expression/DWARFExpressionTest.cpp (+2)
``````````diff
diff --git a/lldb/unittests/Expression/DWARFExpressionTest.cpp b/lldb/unittests/Expression/DWARFExpressionTest.cpp
index 57669413ea7f0..b2af8a6b87051 100644
--- a/lldb/unittests/Expression/DWARFExpressionTest.cpp
+++ b/lldb/unittests/Expression/DWARFExpressionTest.cpp
@@ -68,11 +68,13 @@ class MockMemory {
MockMemory() = default;
MockMemory(Map memory) : m_memory(std::move(memory)) {
// Make sure the requested memory size matches the returned value.
+#ifndef NDEBUG
for (auto &kv : m_memory) {
auto &req = kv.first;
auto &bytes = kv.second;
assert(bytes.size() == req.size);
}
+#endif
}
llvm::Expected<std::vector<uint8_t>> ReadMemory(lldb::addr_t addr,
``````````
</details>
https://github.com/llvm/llvm-project/pull/169232
More information about the lldb-commits
mailing list