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

    <tr>
        <th>Summary</th>
        <td>
            SemaOverload Qualifiers::isAddressSpaceSupersetOf called with wrong order of arguments
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    in clang/lib/Sema/SemaOverload.cpp clang::isBetterOverloadCandidate line 10243,10245 Qualifiers::isAddressSpaceSupersetOf is called with the same arguments (AS2, AS1), making the 2nd call unnecessary. I think the order of the parameters are meant to be swapped in one of them (I think in the 2nd one).  This can lead to a future big if Qualifiers::isAddressSpaceSupersetOf (AS1,AS2) is true and an other check is added later after line 10248. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU8FupDAM_ZpwsYrA0GFy4DCd1Wh7qlazP2ASA9mGBCWho_79iqjT9tgLJrL9nPf8QjGayTH34vFJPP4qaEuzD_1v_-SfYzF4_d4bB8qSmwRerBkEXq680Ed4eeNgPelSretHVXMSzcnEJ06Jwz1_JqeNpsRgjWOoK2wbgec9PsKfjawZDYd4bz5pHTjG60qKr9vKIXJ6GcFEUGQta7iZNEOaGSItDBSmbWGXIgg8nq4o8Aynay1Q7n8LvRo35Wp0OiPA5hwrjpHCewnPkGbjXnOFD5oD-DEfVgq0cOIQgQLDwuQSJA8DQ7zRurIG48A7_mhY9vl3NOM-R3rHAmUJ8HfOFBxYJr0jEYxb2gLDYCYw48-lyERrgedMV-7SpLAxkNNADnyaOYCaWb3uKdKaNVhKHIDG_fu5hmMJhe4bLRtJBff14Shl1x2xLeb-cJBqaA4VKa7qg2yHuumo7bpRj8dGc1eYHitsqg5rxLqr2rJSTS1ZNZLpKJtOirbihYwtrX1bSh-mwsS4cX9oK6wKSwPbmK2H6PgGOSkQdyeGfu95GLYpirayJqb4hZJMstx_d-DPpftuoVvwbvpa-qeRii3Yfk5pzWB4EXiZTJq3oVR-2R-CfbuHhzX4f6ySwEu-fhR4yfT-BwAA__-6px1x">