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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] sizeof(bool) should always be 4
        </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>
    Currently HLSL functions which return or take a bool, do so with bool as an i1, but bool should always be an i32. 
Related the i1 is extended to an i8 in the function body, which is an error. 
https://hlsl.godbolt.org/z/Ksqsva9q3
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkc1u2zAQhJ-GuiwiiEtbPwce0gRCgebUPgFprSy2tOhwSbvO0xeiXRRFTgRmlzOD_QyzO65EWuy_CEQ-G-8Foti_VianJURdpMqG6aZfcoy0Jn-Dr28_3mDO6yG5sDJcF3dYIFLKcYUQIZlfBAZsCF7gC0wBOMDVpaVIYBjMCk5uM5vTXeQlZD-B8VdzY7BUVhTWIJrn7-RNognSQuAkOAb6nWidNimUxR7cWsZ_S8HWeAu4d3MlkmIMsTguKZ1ZqGeBo8Bx8ezrY5hs8KkO8Shw_BA4fuN3vpjhXVWTVtOgBlORlp1q-w67RlWLPiDODQ3tLEkqQ7Jv7dwZxI5mNTUWK6exwX0j5U62qkdVz7bp272Z-rYZhk7uxK6hk3G-9v5y2rIrx5xJS8RBYeWNJc8POitdoUwfhKLePj3ZfGSxa7zjxP9skku-YN1Yif0rsPugMAvs71iGzxffVTl6_f9pji4t2daHcBI4buaP5-kcw086JIFjqcQCx0fni8Y_AQAA___P_cEZ">