[PATCH] Factor out builtin argument range checks

Richard Sandiford rsandifo at linux.vnet.ibm.com
Tue Apr 15 06:23:43 PDT 2014


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.


http://reviews.llvm.org/D3377

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaChecking.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3377.1.patch
Type: text/x-patch
Size: 7568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140415/a8e44f7f/attachment.bin>


More information about the cfe-commits mailing list