hfinkel added a comment.
In https://reviews.llvm.org/D27304#610944, @thegameg wrote:
> In https://reviews.llvm.org/D27304#610697, @joerg wrote:
> > I think this is the absolutely wrong place to put such logic. It really can
> > not be anywhere but the backend.
> I am aware of this. But the way the backend informs the Diagnostics looks
> like a crash, and asks for a bug report.
> Are there any proper ways to inform the frontend about backend errors?
Yes. Look at how we report inline asm errors, etc. grep for
DiagnosticInfoStackSize (used in PEI) or DiagnosticInfoResourceLimit (used by
the AMDGPU backend).
cfe-commits mailing list