mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
Relax this check to silently swallow FE_INEXACT, following directions
from rdar://8452472. This unbreaks gcc.dg/builtins-17.c. llvm-svn: 114368
This commit is contained in:
parent
b8811b9ed9
commit
6eb9263898
@ -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…
x
Reference in New Issue
Block a user