<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/94115>94115</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [ADT] Add DenseMap::insert_or_assign
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            llvm:adt
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nikic
      </td>
    </tr>
</table>

<pre>
    It would be nice to add a C++17 style insert_or_assign method to DenseMap. It was previously added to MapVector in https://github.com/llvm/llvm-project/pull/71969.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkU2L3SAUhn-NbqRBjzEfCxe5EwJdzK50Oxg9k9h6Y1Bzy_33JRnaQnezEuT18bzPMTn7ZUPURN2IGqk5yhqT3vxPb-kc3VN_LexXPIJjM7LNW2QlMuMcM-yFwI3ATbQsl2dA5reMqbzF9PZBZXcsa3TngxG3jK9mr9iJM5ntCR8-Hjk8TxheoVezf0dbYmJ-Y2speyZyIDARmBZf1mOubLwTmEJ4_Dm-7Cn-QFsITPsRAoGpFX3TV9Rp6XrZG4patKIF1XSip6vu6ve2bewsu95yyS3vpLJy7hFMo0AA9Ro41LzhQqi6UX3luHEzdEYhl0LKmdQc78aH6vy_immhPucDdV8LoWgwM4Z82QRYYnTs3adc2JUhAAReCMDVQA7GlfNKjTTpq818LJnUPPhc8j9-8SVcCxrGb0SNbHDur9DTkBz-N0-PFPSnDV4zZgLTR5WHht8BAAD__2FHrX0">