mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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:
@@ -237,8 +237,6 @@ inline X *dyn_cast(Y Val) {
|
|||||||
//
|
//
|
||||||
template <class X, class Y>
|
template <class X, class Y>
|
||||||
inline X *dyn_cast_or_null(Y Val) {
|
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;
|
return (Val && isa<X>(Val)) ? cast<X>(Val) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user