Searched defs:cast_or_null (Results 1 - 1 of 1) sorted by relevance

/external/llvm/include/llvm/Support/
H A DCasting.h10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(),
214 // on failure. It does not allow a null argument (use cast_or_null for that).
242 // cast_or_null<X> - Functionally identical to cast, except that a null value is
247 cast_or_null(Y *Val) { function in namespace:llvm
249 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");

Completed in 30 milliseconds