aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System/FEnv.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/System/FEnv.h')
-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;