summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Value.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h
index 0519bb736e8..771bb22d323 100644
--- a/llvm/include/llvm/Value.h
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud