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

    <tr>
        <th>Summary</th>
        <td>
            MachineFunctionPass properties violations should be a fatal error in all builds, not an assert
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            llvm:codegen
      </td>
    </tr>

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

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

<pre>
    This code should not be conditional on NDEBUG, and should use report_fatal_error: https://github.com/llvm/llvm-project/blob/a2fbc9a8e3d3822cea6f14299285ff0a440d1bf3/llvm/lib/CodeGen/MachineFunctionPass.cpp#L57

This is easily encounterable when working with MIR directly, so should be treated as a developer facing report_fatal_error which can be relied on 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyU0sFu2zgQBuCnoS6DNaihZEsHHZxkFSywKYqiPQdDcmSxZUiDpGzk7Qu6DRqgvfSkgzgD_h9_ytmdAvMk-jvRPzS0lTWmiVLm8NLoaF-nz6vLYKJlyGvcvIUQC2gGE4N1xcVAHmKADw__3n15FHgPFOzb0S0zJD7HVJ4XKuSfOaWYhDrCWso5C3UUOAucT66sm96Z-CJw9v7y9vnnnOJXNkXgrH3UAmfCRZuRBlZWDYiGab-0HY4jDv2ySOo6aVu9qHd7XJ27j5YfOQicn8isLvC8BVNv_5Fy3pnzWaD6vz8IeRTyeIvsMjBl51-Bg4lbKJxIe4brygGuMX1z4QRXV1Z4-u8TWJfYFP9aAXJ8y68ZSmIqbIEyEFi-sI9nTrCQqfO_48B1dWYFQ6FOJ_aObfVt7KTsqEZqeGoPHWI_yBGbdSLN_WhJKjWQ0Z0eun6_75fDoe1Js8XGTSixl6odpFRdjztGubQ8KmsWMwx2LzrJL-T8rortYjo1LueNp1a1B9k2njT7fGsI4g1VHWsfTpUTa2vSdHssvZ2y6KR3ueRfu4ornqc_qMM5VYriOMPFRU_1R35HR3BzgR8uLgB5D3pz3ubKXHtIAShnTqXZkp_-ulS3nFng_DPqZcLvAQAA__87-gfd">