File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -460,8 +460,8 @@ void DynamicRegisterInfo::Finalize(const ArchSpec &arch) {
460
460
// Now update all value_regs with each register info as needed
461
461
const size_t num_regs = m_regs.size ();
462
462
for (size_t i = 0 ; i < num_regs; ++i) {
463
- if (m_value_regs_map.find (i) != m_value_regs_map.end ())
464
- m_regs[i].value_regs = m_value_regs_map[i] .data ();
463
+ if (auto it = m_value_regs_map.find (i); it != m_value_regs_map.end ())
464
+ m_regs[i].value_regs = it-> second .data ();
465
465
else
466
466
m_regs[i].value_regs = nullptr ;
467
467
}
@@ -509,8 +509,9 @@ void DynamicRegisterInfo::Finalize(const ArchSpec &arch) {
509
509
510
510
// Now update all invalidate_regs with each register info as needed
511
511
for (size_t i = 0 ; i < num_regs; ++i) {
512
- if (m_invalidate_regs_map.find (i) != m_invalidate_regs_map.end ())
513
- m_regs[i].invalidate_regs = m_invalidate_regs_map[i].data ();
512
+ if (auto it = m_invalidate_regs_map.find (i);
513
+ it != m_invalidate_regs_map.end ())
514
+ m_regs[i].invalidate_regs = it->second .data ();
514
515
else
515
516
m_regs[i].invalidate_regs = nullptr ;
516
517
}
You can’t perform that action at this time.
0 commit comments