llvm::dyn_cast_or_null

Deprecated alias for dyn_cast_if_present on a pointer.

Synopsis

Declared in <llvm/Support/Casting.h>

template<
    class X,
    class Y>
auto
dyn_cast_or_null(Y* Val);

Return Value

The result of dyn_cast_if_present<X>(Val).

Parameters

NameDescription
ValPointer forwarded to dyn_cast_if_present.