mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Remove extra assert in dyn_cast_or_null.
llvm-svn: 856
This commit is contained in:
parent
3bc02a2111
commit
aff0c3b0f5
@ -237,8 +237,6 @@ inline X *dyn_cast(Y Val) {
|
||||
//
|
||||
template <class X, class Y>
|
||||
inline X *dyn_cast_or_null(Y Val) {
|
||||
assert((Val == 0 || isa<X>(Val)) &&
|
||||
"cast_or_null<Ty>() argument of uncompatible type!");
|
||||
return (Val && isa<X>(Val)) ? cast<X>(Val) : 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user