FoldConvertIntoProducer called op->erase() directly instead of going through the rewriter, which triggers an "unsupported erasure" error under MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS. Assisted-by: Claude Code Fix a failure present with MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS=ON. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>