This is an archive of the discontinued LLVM Phabricator instance.

Fix incorrect -Wtautological-constant-out-of-range warnings with enums
AbandonedPublic

Authored by ibadawi on Jul 27 2016, 9:42 AM.

Details

Reviewers
rjmccall
majnemer
Summary

This is a proposed fix for bug 16154 (https://llvm.org/bugs/show_bug.cgi?id=16154) -- it was tentatively fixed in r183084 but had the fix was backed out in r183575 because the approach taken wrongly affected the behavior or other warnings.

Diff Detail

Event Timeline

ibadawi updated this revision to Diff 65757.Jul 27 2016, 9:42 AM
ibadawi retitled this revision from to Fix incorrect -Wtautological-constant-out-of-range warnings with enums.
ibadawi updated this object.
ibadawi added reviewers: majnemer, rjmccall.
ibadawi added a subscriber: cfe-commits.
ibadawi updated this revision to Diff 65763.Jul 27 2016, 10:07 AM

Remove extra blank line added by accident

ibadawi updated this revision to Diff 65765.Jul 27 2016, 10:12 AM

Restore the test lost in patch #2. Really sorry for the noise...

ibadawi abandoned this revision.Aug 25 2016, 9:02 AM

Abandoning for now -- might submit another patch later according to new discussion on https://llvm.org/bugs/show_bug.cgi?id=16154