[LLVMdev] Exception handling question

Duncan Sands baldrick at free.fr
Fri Jan 22 03:51:52 PST 2010


Hi Garrison,

> %7 = invoke i8* (...)* bitcast (i32 (%struct._Unwind_Exception*)* 
> @_Unwind_RaiseException to i8* (...)*)(i64* %6)
>           to label %8 unwind label %.finally_pad  ; <i8*> [#uses=0]
> 
> I am not sure this is going to work, at least from the way I've played 
> with the system. 
> In my examples the _Unwind_RaiseException(...) is called from a frame 
> (function) called via
> the invoke instruction, not from a frame that contains the invoke 
> instruction.

I'm pretty sure this doesn't matter.  It seems to me more likely that the
exception object was not initialized properly.

Ciao,

Duncan.



More information about the llvm-dev mailing list