mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
Relax this check to silently swallow FE_INEXACT, following directions
from rdar://8452472. This unbreaks gcc.dg/builtins-17.c. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
765fd9c62d
commit
e3c65d1ede
@ -38,7 +38,7 @@ static inline bool llvm_fenv_testexcept() {
|
||||
if (errno_val == ERANGE || errno_val == EDOM)
|
||||
return true;
|
||||
#ifdef HAVE_FENV_H
|
||||
if (fetestexcept(FE_ALL_EXCEPT))
|
||||
if (fetestexcept(FE_ALL_EXCEPT & ~FE_INEXACT))
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user