Crash report is currently generated when inline asm can't be parsed
and no DiagnosticHandler is registered. However, clang doesn't set up
DiagnosticHandle for inline asm when the input is bitcode and
compiling invalid asm from bitcode shouldn't be a compiler crash.
Details
Details
- Reviewers
echristo
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Not sure I agree with this - it changes the behavior (crash or not) based on whether or not there's bitcode as the input. There are lots of places that the behavior will continue as crashing. I think what should happen if you don't want this type of behavior is to avoid setting a global error handler via clang.
Thoughts? More explanation on your logic?
-eric
Comment Actions
I think my patch only disable the crash report when Parser->run returns error in EmitInlineAsm. It is not related to what input type is. Is there any circumstance when it is a compiler crash when Parser->run returns error?
I thought about putting a error handler in clang but I don’t think clang can emit any diagnostics that is more helpful than backend.