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

    <tr>
        <th>Summary</th>
        <td>
            [Clang] DiagnosticInfoUnsupported doesn't print the same error string when called in clang vs opt
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    `DiagnosticInfoUnsupported` will print the diagnostic message in clang while calling the print function in opt. this means the clang version is missing valuable context information like function name and function type.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0kUGOnDwQhU9jNtYgMIamF178f1ot5QA5QAEFVGJs5Cp6Mjl9hKeVziYrpNJ7n3j-gJmWgOhU-78yZob0KwavjFHtrYBD1pjc81gMcfpwqqtuBEuILDR-DXP8FvjY95gEJ9VV-p2813uiIFpW1NOfrN6QGRbUFPToISz6fSWPegTvKSw5_dmbjzAKxXAm4y6llpVYbwiBc-qz_cDEOcR6I-YT8QB_wHAyYxD8KZrCHNMGGebpB77QATbUEKbXRT52LIvJNdO1uUKBrr5Y27W2N32xurFHM0wDzlcc2g4uzVCb2dZ2xhFhvrYFOVOZtrK1rXtTmb6c7HyBFrqm6aEZuk7ZCjcgX3r_2MqYloKYD3R103atLTwM6PmpIS98SkjuLLwNx8LKVp5Y-IUQEp_dfcmN9qb_KUdPETkoc5G_9PD5DJhSTJolUZaCITvB6WXqwaeI4kjerSI7q-Y_Ze7K3BeS9RjKMW7K3M-_en7e9hS_4yjK3PNKVub-HPpw5ncAAAD__-er164">