]> granicus.if.org Git - clang/commit
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)
commitecbf0ff4530604388091502bba3adba5f60a351a
tree5f1e530890add15692003cbfd3a5f4cb778674f3
parent39f710aba33253250e60bd5167582c90ce9b4aec
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315741 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
test/CodeGen/libcall-declarations.c