aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-09-20 22:32:25 +0000
committerDan Gohman <gohman@apple.com>2010-09-20 22:32:25 +0000
commite3c65d1ede77c13c4dd0e07c5c908098466a14e0 (patch)
treead652f815584e2880e628d3e7e1f96e595ee4ee7 /include/llvm/System
parent765fd9c62d53a9157ccbf7078900682294c10b7c (diff)
downloadexternal_llvm-e3c65d1ede77c13c4dd0e07c5c908098466a14e0.tar.gz
external_llvm-e3c65d1ede77c13c4dd0e07c5c908098466a14e0.tar.bz2
external_llvm-e3c65d1ede77c13c4dd0e07c5c908098466a14e0.zip
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
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/FEnv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/System/FEnv.h b/include/llvm/System/FEnv.h
index 4c72eb2ab2..57097d2f57 100644
--- a/include/llvm/System/FEnv.h
+++ b/include/llvm/System/FEnv.h
@@ -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;