aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/NaCl/InsertDivideCheck.cpp
AgeCommit message (Collapse)Author
2013-05-08Insert denominator zero checks for NaClDavid Sehr
This IR pass for ARM inserts a comparison and a branch to trap if the denominator of a DIV or REM instruction is zero. This makes ARM fault identically to x86 in this case. BUG= https://code.google.com/p/nativeclient/issues/detail?id=2833 R=eliben@chromium.org Review URL: https://codereview.chromium.org/14607004