From 00de509022f3a3c72c128ace4ecb04e9acb0c6fd Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Wed, 17 Oct 2001 22:39:50 +0000 Subject: [PATCH] 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 --- include/llvm/Value.h | 2 -- 1 file changed, 2 deletions(-) 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; }