[LLVMdev] LLVM asserts

Chris Lattner clattner at apple.com
Wed Aug 19 16:17:23 PDT 2009


On Aug 19, 2009, at 4:05 PM, David Greene wrote:

> On Wednesday 19 August 2009 18:01, Chris Lattner wrote:
>
>>> It's not about recovery, it's about message reporting.  Right now
>>> the LLVM
>>> abort messages are formatted completely differently than aborts from
>>> other
>>> parts of our compiler.  That's not friendly to users.
>>
>> This is what ErrorReporting.h is all about.
>
> But asserts and aborts don't go through that, right?  What's needed is
> a way to get those assert and abort messages out to other compiler
> components so they have a chance to report them nicely to the user.

assert and abort should never happen, just like a null pointer or  
garbage pointer dereference should never happen.  How are garbage  
pointer and asserts different?

-Chris



More information about the llvm-dev mailing list