cda-group / arc

Programming Language for Continuous Deep Analytics
https://cda-group.github.io/arc/
44 stars 6 forks source link

mlir: Fix crash in verification of `arc.block.result` #318

Closed frej closed 3 years ago

frej commented 3 years ago

If the number of results of the parent arc.if did not match the number of operands to arc.block.result the verifier would crash with a segfault during type verification. The fix is to check that the number of results match before trying to verify the types.