]> granicus.if.org Git - clang/commit
Various builtins a require an integer constant. Not providing
authorChris Lattner <sabre@nondot.org>
Fri, 1 Oct 2010 07:13:18 +0000 (07:13 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 Oct 2010 07:13:18 +0000 (07:13 +0000)
commit393bd8e185692a451b2ba16bdfc9e7d3543b4217
tree6ae6419e49381bcbb76bf3e3a10ef6e9349e1ef1
parentfcb0b2587ddd2e2250b2460e8dd942151380f359
Various builtins a require an integer constant.  Not providing
one results in an obscure error from the backend that doesn't make
sense.  Capture this information in the .def files for builtins with
a new "I" modifier letter indicating the an argument needs to be an ICE.

Nothing uses this yet, but sema will eventually enforce this (eliminating
some special cases from semachecking.cpp) and codegen will use this to
force an ICE value, preventing backend error messages.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115302 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
include/clang/Basic/BuiltinsX86.def
lib/AST/ASTContext.cpp