1
0
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:
Vikram S. Adve 2001-10-17 22:39:50 +00:00
parent 3bc02a2111
commit aff0c3b0f5

View File

@ -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;
}