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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL][SPIRV] Bug in SPIRVGlobalRegistry::getOrCreateCompositeOrNull
        </td>
    </tr>

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

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

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

<pre>
    Register type of register created by 'SPIRVGlobalRegistry::getOrCreateCompositeOrNull' is hardcoded to be 'iID' which is wrong. It should use the register class of the spirv type it is creating a register for. 

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckUGL2zAQhX-NfBnWyJK8tg86JBvSBpZu2YXeJXtiqyiW0cgJ-fdF3pTtuSfBm_dmnvgMkRtnRM3qPROCFuM9E4LVh8KsaQpRb1Jhw3DX7zg6Shgh3ReEcIb4V-gjmoQD2Dsw0Xz8PL3_-uaDNf4zEu9M7pjcjZje4svmfQmXJZBL-BZ_rPlmA45gMnHow4ADpAAW8zJ3OuThbXL9lC23GOaxhFMCmsLqB1gJIU34TxlviHK9rNLi4vWzsEs5v1V18wjmK3EOsQTGD4zvikHLoZOdKVBXjega3kmhiknXRkp-rjvbnLE13ZkrbKTsOpTWyP5ZFE4LLlTFhaxa1SpVYt0qLpu-FX3VSItMcbwY50vvr5cyxLFwRCvqqpKqfS68sejpAWLGG2zTB4yoc-jJriMxxb2jRF9rkkt-I_j99eOV1QdW7zcErD7Afh3BzfAfSIo1ej2ltFB2iiMTx9GlabVlHy5MHPP5x_O0xPAb-8TEcStNTBwfv7pq8ScAAP__R-jH4w">