This is an archive of the discontinued LLVM Phabricator instance.

Fix a build warning of unhandled enum in switch
ClosedPublic

Authored by weimingz on Jul 7 2016, 12:28 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

weimingz updated this revision to Diff 63117.Jul 7 2016, 12:28 PM
weimingz retitled this revision from to Fix a build warning of unhandled enum in switch.
weimingz updated this object.
weimingz added a reviewer: andrew.w.kaylor.
weimingz added a reviewer: chrisj.

Please check if the case is handled correctly.

Hi Johannes,

this is code you added. Would you like to have a look at this patch?

If I understand FMRB_DoesNotReadMemory correctly, it can write to memory anywhere. It should be handled pessimistically, i.e. reject a region containing it as its sideeffects are not predictable (return false;).

weimingz updated this revision to Diff 63257.Jul 8 2016, 10:34 AM
weimingz edited edge metadata.

right, it's write-only attribute.

jdoerfert accepted this revision.Jul 11 2016, 4:02 AM
jdoerfert edited edge metadata.

LGTM, thanks for the patch.

This revision is now accepted and ready to land.Jul 11 2016, 4:02 AM
This revision was automatically updated to reflect the committed changes.