[llvm-commits] [PATCH] Improve error handling, supersede cerr+abort

Eli Friedman eli.friedman at gmail.com
Tue Jun 30 21:59:57 PDT 2009


On Tue, Jun 30, 2009 at 9:28 PM, Chris Lattner<clattner at apple.com> wrote:
> I think that this is over-designed.  The depths of the code generator
> should not be producing warnings, ever.

Instcombine currently can produce warnings; are you suggesting we
should get rid of that?

> We don't need this.  Assertions "can't happen", so assert(0) really is
> unreachable.

Mmm... yeah; that said, I think there are places where we should turn
assertions into errors (particularly in legalization).

-Eli




More information about the llvm-commits mailing list