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.

Synopsis

Declared in <llvm/Support/Casting.h>

template<typename To>
struct NullableValueCastFailed;

Static Member Functions

Name

Description

castFailed

Returns a null To used when a cast fails.

Derived Classes

Name

Description

ValueFromPointerCast

This cast trait provides casting for the specific case of casting to a value‐typed object from a pointer‐typed object. Note that To must be nullable/constructible from a pointer to From to use this cast.

Created with MrDocs