summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index d5ccc3c281f..8c11992f1f8 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -5086,13 +5086,9 @@ static EHFlags parseClangCLEHFlags(const Driver &D, const ArgList &Args) {
}
}
- // Only enable C++ exceptions if the user opts into it by passing
- // -fexceptions. Lots of build systems implicitly pass /EHsc when users don't
- // actually need it.
- // FIXME: Remove this when they work out of the box.
- if (!Args.hasFlag(options::OPT_fexceptions, options::OPT_fno_exceptions,
- /*default=*/false))
- EH = EHFlags();
+ // FIXME: Disable C++ EH completely, until it becomes more reliable. Users
+ // can use -Xclang to manually enable C++ EH until then.
+ EH = EHFlags();
return EH;
}
OpenPOWER on IntegriCloud