llvm::NullableValueCastFailed

Provides a declarative castFailed that constructs a null To.

Synopsis

Declared in <llvm/Support/Casting.h>

template<typename To>
struct NullableValueCastFailed;

Description

This cast trait just provides castFailed for the specified To type to make CastInfo specializations more declarative. In order to use this, the target result type must be To and To must be constructible from nullptr.

Static Member Functions

NameDescription
castFailed Returns a null To used when a cast fails.

Derived Classes

NameDescription
ValueFromPointerCast Cast trait for constructing a value-typed To from a From pointer.