summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Value.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 0519bb7..771bb22 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -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;
}