Skip to content

Commit bbd99aa

Browse files
Fix #168467 (r598213) (#169232)
Co-authored-by: Aiden Grossman <agrossman154@yahoo.com>
1 parent c543615 commit bbd99aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lldb/unittests/Expression/DWARFExpressionTest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ class MockMemory {
6868
MockMemory() = default;
6969
MockMemory(Map memory) : m_memory(std::move(memory)) {
7070
// Make sure the requested memory size matches the returned value.
71-
for (auto &kv : m_memory) {
72-
auto &req = kv.first;
73-
auto &bytes = kv.second;
71+
for ([[maybe_unused]] auto &[req, bytes] : m_memory) {
7472
assert(bytes.size() == req.size);
7573
}
7674
}

0 commit comments

Comments
 (0)