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
248 cast_or_null(const Y &Val) { function in namespace:llvm
251 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
258 cast_or_null(Y &Val) { function in namespace:llvm
261 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
267 cast_or_null(Y *Val) { function in namespace:llvm
269 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");

Completed in 174 milliseconds