diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-02-28 07:25:18 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-02-28 07:25:18 +0000 |
| commit | 74f87118029f468988d112e8231760aeea99bdb5 (patch) | |
| tree | 27c6f09fd0fed816c63039f04f63843b7065705e /clang/lib | |
| parent | 35d3ac5e9e8ba1dad0d9d1a5132d0ab946b5e844 (diff) | |
| download | bcm5719-llvm-74f87118029f468988d112e8231760aeea99bdb5.tar.gz bcm5719-llvm-74f87118029f468988d112e8231760aeea99bdb5.zip | |
Fix a tiny goof in the Driver's logic which caused the explicit presence
of -fexceptions to disably C++ exceptions. The correct code was in the
ObjC branch, this just mirrors that logic on the C++ side of things.
Thanks to John Wiegley for pointing this out.
llvm-svn: 126640
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 475b904b063..6f373658eb5 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -845,7 +845,7 @@ static void addExceptionArgs(const ArgList &Args, types::ID InputType, options::OPT_fno_exceptions)) { if (A->getOption().matches(options::OPT_fcxx_exceptions)) CXXExceptionsEnabled = true; - else + else if (A->getOption().matches(options::OPT_fno_cxx_exceptions)) CXXExceptionsEnabled = false; } |

