Function has_personality_fn

Source
pub fn has_personality_fn(val: &ValueRef) -> bool
Expand description

Checks whether the given function has an associated personality function.

This function wraps the LLVMHasPersonalityFn function from the LLVM core library. A personality function is used in exception handling to provide language-specific semantics for stack unwinding.

§Parameters

  • val: The ValueRef representing the function to check.

§Returns

Returns true if the function has an associated personality function, or false otherwise.