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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Make sure compilation stops when errors are reported from LLVM pass
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL
      </td>
    </tr>

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

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

<pre>
    When errors are reported from an LLVM pass, such as when there are overlapping resource bindings or mismatched counter direction calls, Clang errors an error and then continues executing and outputs the assembly. We need to stop the execution when a pass detects an error state, as DXC does.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0UrFu3DAM_Rp5IWLYsn0-Dx7aBIcOl6lA05WWeLYaWTJEKm3-vrB7SLt04kA-vvf4iMxuDkSj6j6r7qnALEtM40KvUbCYon0fXxYKQCnFxICJINEWk5CFW4orYIDr9dszbMis9CNwNgsgw88dJQslOkDxjZLHbXNhhkQcczIEkwvWhZkhJlgdryhmIQsm5iCUwLpERlwMYND7Y_ujxzB_iLnLAgx2pwpgYhAXMjHQLzJZdra9GbNsWXgfAmSmdfLvJbwQBCILEoElbkf3jovhjwE8fIElISP_MLKg0C4IGZ6-P4KNxGVhx8YOzYAFjXXf9ue-7k99sYyVqc7WDhO1dd9Qcz6f2xaNJXOrm5MdboUbdaW7qtO1brpT1ZdDVfe3djhNjTHWmEq1Fa3ofOn921rGNBeOOdNYt9XQ68LjRJ6PDLX-cv16VVrvaaZxn3-Y8syqrbxj4b8bxIk_cj8A3RM84ysB50Rg4ro5j8cd9tPc4_zvE3x8QJGTHxeRjVXzSemL0pfZyZKn0sRV6ctOfi8PW4o_yIjSl8MLK32523kb9e8AAAD__0Zo4ds">