Hi Martin > + key.unit_offset = unit_offset; > + ipa_param_body_replacement *res > + = std::lower_bound (m_replacements.begin (), m_replacements.end (), key, > + [] (const ipa_param_body_replacement &elt, > + const ipa_param_body_replacement &val) > + { > + if (DECL_UID (elt.base) < DECL_UID (val.base)) > + return true; > + if (DECL_UID (elt.base) > DECL_UID (val.base)) > + return false; > + if (elt.unit_offset < val.unit_offset) > + return true; > + return false; > + });
I'm curious if we can re-use compare_param_body_replacement as the introduced lambda does a very similar thing, right? Thanks, Martin