[LLVMdev] Why asserts don't provide much information?

Kenneth Uildriks kennethuil at gmail.com
Fri Jun 4 05:28:49 PDT 2010


On Thu, Jun 3, 2010 at 10:12 PM, Curtis Faith <curtis at curtisfaith.com> wrote:
> I concur. I've run into this exact assert at least 10 different times in the last two weeks since I started with LLVM as I'm learning the particulars of the typing system for function calls in particular.
>
> It would be nice if it would tell you what expected signature was, what the value of i was so you know which parameter went wrong, and what the actual type passed in was, as well as what was expected. You can get this information yourself but it is a real pain.

I've run into it as well, more times than I can count.  Now asserts
are supposed to be removable, but perhaps an assert that calls a
function listing the particulars of the problem could improve things.




More information about the llvm-dev mailing list