Function is_null

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

Determine whether a value instance is null.

§Details

Checks if the value is a constant ‘null’ value.

This function wraps the LLVMIsNull function from the LLVM core library. It determines whether the value represented by ValueRef is a constant ‘null’ value. This is typically used to check if a pointer or other nullable type is explicitly set to null within the LLVM IR.

§Returns

Returns true if the value is a constant null value, otherwise returns false.