[LLVMdev] landingpad instruction documentation is vague

陳韋任 chenwj at iis.sinica.edu.tw
Wed Jan 11 03:15:26 PST 2012


On Wed, Jan 11, 2012 at 11:37:50AM +0100, Duncan Sands wrote:
> Hi Yuri,
> 
> > I am new to the landingpad (which is relatively new too).
> > Documentation http://llvm.org/docs/LangRef.html#i_landingpad leaves some
> > questions open:
> >
> > 1. What happens when actual exception type isn't listed in catch or
> > filter clauses? Does it still return the corresponding structure like if
> > it was listed? Or behavior is undefined?
> 
> if it doesn't match a clause then the exception continues to be unwound.
> Note that you can match a catch clause without being equal to the type
> in the catch clause (for example because the catch clause type represents
> some class B, and thus will also match a class A if B derives from A).

[snippet]

  It would be great if this can be put somewhere on the website to clear
LLVM exception handling further. ;)

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list