This is an archive of the discontinued LLVM Phabricator instance.

Factor out builtin argument range checks
ClosedPublic

Authored by rsandifo on Apr 15 2014, 6:23 AM.

Details

Reviewers
rnk
Summary

SemaChecking.cpp has several copies of the same range-check idiom.
This patch factors them out into a utility function. No behavioural
change intended.

I need to add something similar for SystemZ and didn't want to add more
copies of the sequence.

Diff Detail

Event Timeline

rnk accepted this revision.Apr 15 2014, 1:29 PM

Nice, lgtm.

rsandifo closed this revision.Apr 16 2014, 2:00 AM

r206364, thanks.