CXXExceptions are C++, not Exceptions.

This commit is contained in:
Axel Naumann 2014-03-25 10:19:40 +01:00 committed by sftnight
parent c65443727d
commit 3aea38dd3d

View File

@ -456,8 +456,8 @@ namespace cling {
void CIFactory::SetClingCustomLangOpts(LangOptions& Opts) {
Opts.EmitAllDecls = 0; // Otherwise if PCH attached will codegen all decls.
Opts.Exceptions = 1;
if (Opts.CPlusPlus) {
Opts.Exceptions = 1;
Opts.CXXExceptions = 1;
}
Opts.Deprecated = 1;