diff options
author | Anders Carlsson <andersca@mac.com> | 2011-02-20 00:20:27 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-02-20 00:20:27 +0000 |
commit | c1cfdf8647a499b6b3024f4bd14a236cddb23988 (patch) | |
tree | 07b87aed1f31e66a219553c3ed564299e3ae7c8f /lib/CodeGen/CGDeclCXX.cpp | |
parent | da4b7cf09ebfd4e4098b516081fa9dae2f5c99e0 (diff) |
Add a LangOptions::areExceptionsEnabled and start using it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDeclCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGDeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDeclCXX.cpp b/lib/CodeGen/CGDeclCXX.cpp index 8b37e9af3c..e295267896 100644 --- a/lib/CodeGen/CGDeclCXX.cpp +++ b/lib/CodeGen/CGDeclCXX.cpp @@ -166,7 +166,7 @@ CreateGlobalInitOrDestructFunction(CodeGenModule &CGM, Fn->setSection(Section); } - if (!CGM.getLangOptions().Exceptions) + if (!CGM.getLangOptions().areExceptionsEnabled()) Fn->setDoesNotThrow(); return Fn; |