diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 0519bb736e8..771bb22d323 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -237,8 +237,6 @@ inline X *dyn_cast(Y Val) { // template inline X *dyn_cast_or_null(Y Val) { - assert((Val == 0 || isa(Val)) && - "cast_or_null() argument of uncompatible type!"); return (Val && isa(Val)) ? cast(Val) : 0; }