## Description In `src/flow/mlir_generator.py` (line ~206): ```python has_return = any(isinstance(stmt, ReturnStatement) for stmt in func.body.statements) ``` Only checks top-level statements. Returns inside if-else blocks are missed, causing a duplicate `func.return` to be generated, producing invalid MLIR. ## Audit ID: MG-M3 **Severity:** Medium | **Category:** Compiler - mlir_generator.py
Activity
godofecht commentedon Feb 9, 2026
Fixed in d1811e5. Summary: monomorphize preserves VarDecl mutability; MLIR unary minus uses typed zero const; MLIR return
detection walks nested blocks; module-scope consts avoid SSA ops; import path traversal blocked + missing imports now error; safer
paren removal in C generator.
docs: make every anchor resolve, on the wiki as well as GitHub (#542)