<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/88522>88522</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Clang assertion failure when run with `-cc1 -ast-dump` args and a LLVM IR file
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:driver,
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
yronglin
</td>
</tr>
</table>
<pre>
Clang assertion failed at https://github.com/llvm/llvm-project/blob/599adf30afe5802fab80419ec5bb896036a1c8fb/clang/lib/Frontend/FrontendAction.cpp#L759-L761 , I think we'de better to add a diagnostic message instead assertion failure?
```
Assertion failed: (hasIRSupport() && "This action does not have IR file support!"), function BeginSourceFile, file FrontendAction.cpp, line 761.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyck09vtDYQxj-NuYx2ZYbl34HDvpsXKdJWqpKq98EewI3XRrZJlG9fwTZtFOXSV0ICDwwzz2_moRjN5Jg7Uf4Q5UNGa5p96N6Dd5M1Lhu8fu8ultwEFCOHZLyDkYxlDZRgTmmJojgL7AX2k0nzOhyVvwnsrX39uB2W4P9ilQT2g_WDwL5sW9JjIWnkspE40tDIU96yKoehaStZVJSrZtw-VVvx7UdmO_XBu8ROf3o8q62po1oWgcW1LtvDta5yEHiBR0izcS_wxgJrzTBwShwgeSCtgUAbmpyPySi4cYw0MRgXE5P-onYNLIpeyAchz6KS_1z78fwFiyjOILCZKT4-Pa_L4kMS2AhsQWAlsAKB-MdsItDeN2jPEZxPMNMrw-MTjMYyxI_MXCAKbDc14-ruKT94Mu7Zr0Fxbyzv77ak74hcwBrHUFf58d7v79ef5-efENfhZhIQDOsEgbdiG5f_PVAT48pRYA_kNBin7KoZ0sygAsUZBlIvKZDau1wCL8ErjpE1xF3AFt4yKUavDCXWEFYHUQWzpOMX4pnuCt0WLWXc5XWObXFCxGzuSlkpzHUz1lLXshzzsa5Ik8aSTy1pmZkOJZ7kKce8lEXRHkssi3ykWmFTjyW14iT5RsYeN31HH6ZsV9Y1TYmYWRrYxt0kiPeNLM46mFcO-3wun8LjvyuKm6NCtxMb1imKk7QmpvhfjWSS3b23W0yUD_Cd19bA8Daz28m8mTSDqORBqRwOFNNBr7dFVBIoTPHOEq7XP3_72KVsDbb79bnuAP4OAAD__81SVsc">