r265038 - Diagnostics: remove dodgy handler for bitcode inlineasm diagnostics.

Steven Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 1 12:40:51 PDT 2016


> On Apr 1, 2016, at 12:04 PM, Tim Northover <tnorthover at apple.com> wrote:
> 
> 
>> On 31 Mar 2016, at 16:51, Steven Wu <stevenwu at apple.com> wrote:
>> 
>> The original handler is not there to workaround a crash. It is to avoid generate a crash report (report_fatal_error) when the input bitcode contains invalid assembly. 
> 
> Ah, I see now. That test needs tweaking too, since it doesn't actually produce the crash report even after my change (probably because it's a %clang_cc1 test).
Probably need assertion build or some cmake setting to actually show the crash log. 
> 
> How does the patch attached here look? I originally tried reusing the real InlineAsmDiagHandler but that was disastrous (it needs a real AST I think, which obviously doesn't exist when compiling a .bc file).
Generally good. How about only report error when SM.getKind() == DK_Error?

Steven

> 
> Cheers.
> 
> Tim.
> 
> <asm-diagnostics.diff>



More information about the cfe-commits mailing list