Opened 17 months ago

Last modified 17 months ago

#450 new bug

Division by zero in the LLVM generated code has undefined behaviour

Reported by: benl Owned by:
Priority: normal Milestone:
Component: Salt to LLVM Version: 0.4.2
Keywords: Cc:


The LLVM div and rem instructions have undefined behaviour when the divisor is zero. The code generator should check this and explicitly fail on zero.

Change History (1)

comment:1 Changed 17 months ago by benl

  • Version changed from none to 0.4.2
Note: See TracTickets for help on using tickets.