Closed
Description
Division by zero leads to undefined behavior. Overflow also leads to undefined behavior; this is a rare case, but can occur, for example, by doing a 32-bit division of -2147483648 by -1.
http://llvm.org/docs/LangRef.html#sdiv-instruction
Note that this is undefined behaviour, not just an unspecified result like a shift by too many bits. We need to add a check for this.
Metadata
Metadata
Assignees
Labels
No labels