The AsmParser isn't catching illegal casts and reporting them as errors. This causes llvm-as to fail with an assertion when the attempt is made to instantiate the illegal cast instruction. For example: %X = trunc i32 %Y to i8* The instruction needed here is inttoptr, not trunc. This causes an assertion instead of a nice error message.
Mine.
Fixed with these patches: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042809.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042810.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/042811.html