diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h --- a/mlir/include/mlir/IR/OpDefinition.h +++ b/mlir/include/mlir/IR/OpDefinition.h @@ -1257,9 +1257,6 @@ static bool classof(Operation *op) { if (auto *abstractOp = op->getAbstractOperation()) return TypeID::get() == abstractOp->typeID; - assert(op->getContext()->isOperationRegistered( - ConcreteType::getOperationName()) && - "Casting attempt to an unregistered operation"); return false; }