commit | c1cfdf8647a499b6b3024f4bd14a236cddb23988 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun Feb 20 00:20:27 2011 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun Feb 20 00:20:27 2011 +0000 |
tree | 07b87aed1f31e66a219553c3ed564299e3ae7c8f | |
parent | da4b7cf09ebfd4e4098b516081fa9dae2f5c99e0 [diff] [blame] |
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
diff --git a/lib/CodeGen/CGDeclCXX.cpp b/lib/CodeGen/CGDeclCXX.cpp index 8b37e9a..e295267 100644 --- a/lib/CodeGen/CGDeclCXX.cpp +++ b/lib/CodeGen/CGDeclCXX.cpp
@@ -166,7 +166,7 @@ Fn->setSection(Section); } - if (!CGM.getLangOptions().Exceptions) + if (!CGM.getLangOptions().areExceptionsEnabled()) Fn->setDoesNotThrow(); return Fn;