diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-11-18 19:31:57 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-11-18 19:31:57 +0000 |
commit | 7b61dc7a2362e1ebf4f2a7503e160b2ca991889e (patch) | |
tree | 496298a260eae1c2efa95dc4cf957605ffa2aa5a /llvm/lib/Support/CodeGenCoverage.cpp | |
parent | 65b8a2c9e154ab0e1d8bd038a2257fa4aba549b8 (diff) | |
download | llvm-7b61dc7a2362e1ebf4f2a7503e160b2ca991889e.zip llvm-7b61dc7a2362e1ebf4f2a7503e160b2ca991889e.tar.gz llvm-7b61dc7a2362e1ebf4f2a7503e160b2ca991889e.tar.bz2 |
[CodeGen] change const-ness of complex calls
After clarification about the C standard, POSIX, and implementations:
The C standard allows errno-setting, and it's (unfortunately for optimization) even
more clearly stated in the newer additions to the standards.
We can leave these functions as always constant ('c') because they don't
actually do any math and therefore won't set errno:
cimag ( http://en.cppreference.com/w/c/numeric/complex/cimag )
creal ( http://en.cppreference.com/w/c/numeric/complex/creal )
cproj ( http://en.cppreference.com/w/c/numeric/complex/cproj )
conj (http://en.cppreference.com/w/c/numeric/complex/conj )
Differential Revision: https://reviews.llvm.org/D39611
llvm-svn: 318598
Diffstat (limited to 'llvm/lib/Support/CodeGenCoverage.cpp')
0 files changed, 0 insertions, 0 deletions