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

    <tr>
        <th>Summary</th>
        <td>
            LLC crashes with sample type metadata.
        </td>
    </tr>

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

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

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

<pre>
    Reading through [this page](https://llvm.org/docs/TypeMetadata.html) on the reference for type metadata.  and two errors happen.
first it says `declare void @g() !type !3` is invalid specifically
> error: expected '=' here
> declare void @g() !type !3
(with the caret under `!3` I couldn't figure out how to get the formatting correct)
secondly after commenting that line out it crashes saying it doesn't know how to promote an operator.  Sample https://llvm.godbolt.org/z/EKK4h74nz
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU81u8zYQfJrVZRFDov6sgw5JHANt0kvbF6DItciWIgVyFdd5-kJS_AUBvsN30oG7M7MzI5mSHT1RD_UT1KdMLmxC7H9_flqiT1ZTNgR96_8kqa0fkU0My2gQ6ic2NuEsR4L6BOJomOcE5SOIM4izc-_TIcQRxFkHlUCc_77N9Aex1JLlwfDkQHQYPLIhjHShSF4RXkJEvs2E030UUXqNfA1IMYaY0Mh5Jn-A_AT548XGxGgZk7wlhCbXpJyMhO_BaoQqH0EcVyYQxYYLoiihydEmtP5dOqsxzaTsxSrp3G1HhfJlZ4PyEem_mRSTRhAtlCcQLRqK9DX5S5T7tDheLZvtZiUjMS5eU1x133X9hiosTnsQLePFjkskDAujCVfkgCPxtn0JcZLMayQqxEiKQXQ7SSIVvHY3lBemiCpME3new5OMzvod0TKqKJOhtJq3vltGHSjt3P_6cL2zzjFMgQmlxzBTlBziAfEvOc2O8CfBj0EPwfFnAT5AnF9eXyvTVv4j032pu7KTGfVFWxSiq5qyzExfCCpzNQxEqqtk3bTDcRjqrmuaVpWNHDLbi1xUeSmqoi7bojwU9VEVOTV1XuljmzdQ5TRJ6w738mU2pYX6Y1NVInNyIJe2mgvh6YrbIwixtj72687DsIwJqtzZxOkLhS076t_enn_4tYWY9vO_tzVbouu_OzJaNstwUGH6tOfz8zDH8M8W3HmTsv4km9T_AwAA__8-hCiM">