edA-qa mort-ora-y
2013-Mar-30 12:16 UTC
[LLVMdev] SmallVectorTemplateCommon assertion failed
I'm starting my exception handling and I am getting this error while
running:
parse: /home/opt/llvm/include/llvm/ADT/SmallVector.h:126: reference
llvm::SmallVectorTemplateCommon<llvm::EVT>::operator[](unsigned int):
Assertion `begin() + idx < end()' failed.
Stack dump:
0. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_wrapped_entry'
This is coming from the execution engine. The code which produces this is:
declare i32 @leaf_exception_personality(i32, i32, i64, i8*, i8*)
define void @_wrapped_entry() {
entry:
invoke void @_entry()
to label %end unwind label %catch
catch: ; preds = %entry
landingpad void personality i32 (i32, i32, i64, i8*, i8*)*
@leaf_exception_personality
catch i8* null
br label %end
end: ; preds = %catch, %entry
ret void
}
The catch clause is intended to be a catch-all for my language, so I
assumed a null is okay.
--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130330/364602f6/attachment.sig>
Rafael EspĂndola
2013-Apr-01 14:24 UTC
[LLVMdev] SmallVectorTemplateCommon assertion failed
> The catch clause is intended to be a catch-all for my language, so I > assumed a null is okay.llc rejects it: test.ll:9:14: error: void type only allowed for function results landingpad void personality i32 (i32, i32, i64, i8*, i8*)*> -- > edA-qa mort-ora-y > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --Cheers, Rafael
Reasonably Related Threads
- [LLVMdev] Error "Cannot emit physreg copy instruction"
- [LLVMdev] Error "Cannot emit physreg copy instruction"
- [LLVMdev] landingpad catch types not making it to Dwarf tables
- [LLVMdev] post-link Dwarf information appears wrong, works in JIT
- [LLVMdev] post-link Dwarf information appears wrong, works in JIT