Integrating the exception handling code into the application – Advanced IR GenerationIntegrating the exception handling code into the application – Advanced IR Generation
The IR for the division is generated inside the visit(BinaryOp &) method. Instead of just generating a sdiv instruction, we must generate an IR to compare the divisor with 0. [...]