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

    <tr>
        <th>Summary</th>
        <td>
            [clang] Deduplicate `FinishTemplateArgumentDeduction` helper function in `SemaTemplateDeduction.cpp`.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            clang:frontend
      </td>
    </tr>

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

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

<pre>
    In `SemaTemplateDeduction.cpp`, we have two duplicated versions of [`FinishTemplateArgumentDeduction`](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaTemplateDeduction.cpp#L3192). And after #89358, we have three duplications. 


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUktGOnSAQhp9mvCE1OIhHL7w4XWPSpHftC4CMSotgAHfTt2_07G7TpEnbGyYZhhm-f36Vkl08UQ_yI8ihUEdeQ-zX8J2sL3QwP_pPnkHDv9CmvtK2O5VpIHNM2QZfTvsODQd8Yi_EVvVMLL8EZo7d2UllMuyZYrLBJxZmdo5o-Gi9Tetbq3tcjo18fm95tpMDYLvmvCcQd8ARcFxsXg9dTmEDHJ17fgsf9hi-0ZQBR-2CBhw3ZT3gODnll7PInsnz96_hzxAoPouqQ8CuZHdvmJozRQYo2k7I9jfANRK9I55sJQM-AL8_zsL0wnSiUwX11a2St6biVVesvdTE-a0xN8knXaumq0xNWnLZkq40VoXtkWPNZSV5WzWyK4XAWgnBq27q5Nw2UHPalHXlSV6GuBQ2pYP6DhHrwilNLl2LRFxCMGy2MWV21QAi4BMgPnQR9zkGn8mb80IORewvNfWxJKi5symnX1Oyze5yyOOxHNgp3uuO2T_tlK3kdopsPvyVYvavriqLI7r-v21w4SbA8VLlZwAAAP__1kPubw">