Commit 860a120b authored by Andrew Waterman's avatar Andrew Waterman
Browse files

Define sim_t::INTERLEAVE so that it can be accessed by reference

std::min takes its arguments by reference, so the arguments need to be
defined.  An alternative would have been to force the problematic argument
into being an rvalue (e.g., by adding 0), but this approach seems to me
to be more robust.

This fixes compilation under -O0; see https://github.com/riscv-software-src/riscv-isa-sim/pull/1264#issuecomment-1451114717

@scottj97 I posit that this situation is unusual enough that it shouldn't
motivate us to test -O0 in CI.
parent d1ae27b7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment