<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/138914>138914</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Migrate away from report_fatal_error
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kazutakahirata
</td>
</tr>
</table>
<pre>
We should migrate away from `report_fatal_error` as it has been "soft" deprecated in `llvm/include/llvm/Support/ErrorHandling.h`:
```
/// @deprecated Use reportFatalInternalError() or reportFatalUsageError()
/// instead.
[[noreturn]] void report_fatal_error(const char *reason,
bool gen_crash_diag = true);
```
and in `llvm/include/llvm/Support/Error.h`:
```
/// @deprecated Use reportFatalInternalError() or reportFatalUsageError()
/// instead.
[[noreturn]] void report_fatal_error(Error Err, bool gen_crash_diag = true);
```
Once we are done, we should remove the bits to disable `-Wno-documentation-deprecated-sync`. (#138909)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzUU01v2zoQ_DWry8IGTX1YOujgxDHeOzy8QxHkaKzEtcSGIg2ScpD--oKK27hNL-2twJyo1ezs7CyFoAfL3EJ5B-U-ozmOzrfP9GWO9Eyj9hQp65x6bZ8Yw-hmo3DSg6fISC_0iifvJoRKeD47H48nimSO7L3zUAmkgDriSAE7ZosgZXCnCFKi4rPnniIr1DYRGHOZQB607c2sGOTh-vBpPidmkIeHxPoPWWW0HdYjVALyHYgFlbhC7EAe3oBQiJs2j4HxTeUhifzXRvaWzMIKsgbZoPO3FY-BBr75_AO3tiEyqXV6TN7dWec5zt5CuYdyjxenFf7CFFn3zoaI_UgeQe48U3AW5D2IHXbOGRzYHntPYTwqTQNCvsfoZ04C8rufZxU7sr_p4N_r3MKID96DvP8jr_63PeMLI3lG5SwnnpfvufY8uQtjHBk7HQNGh0oH6gwnd1dP1q2U6-eJbaSonV29W7QKr7aHSqxxGTjf5HUjmuvkN8hUm6smbyjjdrMtqiqvt6LIxraR3YlPdUWkmro8Vc22JFXVeUPU5_22y3QrhSxFKbabrSxFsZY9d4ILorJTZU4VFIIn0madtr52fsh0CDO3ScqmyAx1bMK3O_dtqlp18xCgEEaHGN7_izoabv_7cOUfd5LN3rRjjOeQ8rSsd9BxnLt176b3AC69zt595j6lcNEVQB6u0i6t_BoAAP__Jw1w8g">