Remove extra assert in dyn_cast_or_null.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2001-10-17 22:39:50 +00:00
parent 67edee1443
commit 00de509022

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