Browse Source

Remove unnecessary logical-or

We know chain_ok is false because we just tested it.
pull/1158/head
Scott Johnson 3 years ago
parent
commit
aa5c5a6e03
No known key found for this signature in database GPG Key ID: 61C1F01D3D1410C9
  1. 2
      riscv/triggers.cc

2
riscv/triggers.cc

@ -341,7 +341,7 @@ std::optional<match_result_t> module_t::detect_memory_access_match(operation_t o
for (auto trigger: triggers) { for (auto trigger: triggers) {
if (!chain_ok) { if (!chain_ok) {
chain_ok |= !trigger->get_chain(); chain_ok = !trigger->get_chain();
continue; continue;
} }

Loading…
Cancel
Save