[LLVMdev] Assertion failure in llc when using exception handling

Duncan Sands baldrick at free.fr
Thu Jun 10 03:32:59 PDT 2010

Hi Shivram,

>         lpad:                                             ; preds = %return7
>            %46 = call i8* @llvm.eh.exception()             ; <i8*> [#uses=2]
>            store i8* %46, i8** %22
>            %47 = call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %46, i8*
>         bitcast (i32 (...)* @__gxx_personality_v0 to i8*), i8* null) ; <i32>
>         [#uses=0]
>     try putting eh.selector call before the store.
> Tried. The optimized code looks a little different now but I'm getting
> the same assert failure in llc.

please open a bugreport.

Best wishes,


PS: Fixing this propoerly in the code generator is a lot of work.  The reason
it is a lot of work (rather than trivial, like in gcc) is due to the design of
exception handling in LLVM.
PPS: Please don't forget to send replies to the mailing list.

More information about the llvm-dev mailing list