[LLVMdev] landingpad instruction documentation is vague

Duncan Sands baldrick at free.fr
Fri Jan 13 12:04:22 PST 2012


Hi 陳韋任,

> 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. ;)

I added some text to the landingpad section of the LangRef.

Ciao, Duncan.



More information about the llvm-dev mailing list