when I compile some bitcode files with llc, the folowing error is thrown. What does it mean and how can I solve the problem? llc: /home/ali/llvm-3.3.src/include/llvm/Support/Casting.h:237: typename enable_if<is_same<Y, typename simplify_type<Y>::SimpleType>, typename cast_retty<X, Y *>::ret_type>::type llvm::cast(Y *) [X llvm::FrameIndexSDNode, Y = llvm::SDNode]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed. 0 llc 0x08d5b7f9 llvm::sys::PrintStackTrace(_IO_FILE*) + 41 Stack dump: 0. Program arguments: llvm-3.3.src/Release+Asserts/bin/llc ./vm/tools/ReyVM/.Debug/ReyVM-runtime.bc -O3 -filetype=asm -disable-cfi -disable-fp-elim -load=/home/ali/vmkit/Release+Asserts/lib/static-gc-printer.so -o ./vm/tools/ReyVM/.Debug/ReyVM-binary.s 1. Running pass 'Function Pass Manager' on module './vm/tools/ReyVM/.Debug/ReyVM-runtime.bc'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@app_main' make: *** [all] Aborted -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140124/285edb24/attachment.html>
Hi Ali,> when I compile some bitcode files with llc, the folowing error is thrown. > What does it mean and how can I solve the problem?It looks like a bug in the X86 backend, but without more information it could still be caused by invalid IR. The first thing to try is to see whether it's already been fixed by someone else on trunk (it looks like you're using LLVM 3.3, and things change rather quickly). After that, I'd suggest reporting the issue at http://llvm.org/bugs to make sure it doesn't get completely forgotten. Remember to attach a .bc file and instructions so that other people can reproduce the issue on their own. I don't tend to monitor the bugs mailing list, so if you report it could you tell us here too? I'd be interested to take a look at what's going on. Cheers. Tim.