forked from OSchip/llvm-project
parent
41c80e89f3
commit
0359101df2
|
@ -192,8 +192,8 @@ template<class To, class FromTy> struct cast_convert_val<To,FromTy,FromTy> {
|
||||||
|
|
||||||
// cast<X> - Return the argument parameter cast to the specified type. This
|
// cast<X> - Return the argument parameter cast to the specified type. This
|
||||||
// casting operator asserts that the type is correct, so it does not return null
|
// casting operator asserts that the type is correct, so it does not return null
|
||||||
// on failure. But it will correctly return NULL when the input is NULL.
|
// on failure. It does not allow a null argument (use cast_or_null for that).
|
||||||
// Used Like this:
|
// It is typically used like this:
|
||||||
//
|
//
|
||||||
// cast<Instruction>(myVal)->getParent()
|
// cast<Instruction>(myVal)->getParent()
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue