Skip to content

Commit 056477b

Browse files
googlewaltboomanaiden154
authored andcommitted
Fix llvm#168467 (r598213) (llvm#169232)
Co-authored-by: Aiden Grossman <[email protected]>
1 parent ebaf396 commit 056477b

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)