This is an archive of the discontinued LLVM Phabricator instance.

[MC] Don't crash on modulo by zero (PR35650)
ClosedPublic

Authored by RKSimon on Feb 22 2018, 9:49 AM.

Details

Summary

Extension to D12776, handle modulo by zero in the same way we handle divide by zero.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Feb 22 2018, 9:49 AM
davide accepted this revision.Feb 22 2018, 9:52 AM

LGTM, I didn't think about modulo when I did this for integer division, but, as you say, it's a natural extension.

This revision is now accepted and ready to land.Feb 22 2018, 9:52 AM
This revision was automatically updated to reflect the committed changes.