Following D109516, this patch re-uses the new helper function for ELF relocation traversal in the RISCV backend.
Account for modifications in the underlying patch
Good catch! Actually, I made a copy/paste mistake here (from x86-64). This check didn't exist for RISCV. It'd be a functional change and thus I am going to drop it (even in case it's accurate for RISCV).
Agree. It's been a leftover from my previous std::function sketches. Latest version passes the member function pointer directly.