mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +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:
parent
67edee1443
commit
00de509022
@ -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