Basic: adjust attributes on `nan` LIBBUILTINs
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 13 Oct 2017 20:07:30 +0000 (20:07 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 13 Oct 2017 20:07:30 +0000 (20:07 +0000)
commit52dbdc04fe6eaa91cc3c7b0966b242b673e0e823
tree89332319916ccf5fbdfc30e2db8139161573843b
parentf2db97d8faca73f1abac3221e08418ff40d45947
Basic: adjust attributes on `nan` LIBBUILTINs

The `nan` family of functions will inspect the contents of the parameter
that they are passed. As a result, the function cannot be annotated as
`const`.  The documentation of the `const` attribute explicitly states
this:
  Note that a function that has pointer arguments and examines the data
  pointed to must not be declared const.
Adjust the annotations on this family of functions.

llvm-svn: 315741
clang/include/clang/Basic/Builtins.def
clang/test/CodeGen/libcall-declarations.c