[cfe-commits] r126640 - /cfe/trunk/lib/Driver/Tools.cpp
Chandler Carruth
chandlerc at gmail.com
Sun Feb 27 23:25:18 PST 2011
Author: chandlerc
Date: Mon Feb 28 01:25:18 2011
New Revision: 126640
URL: http://llvm.org/viewvc/llvm-project?rev=126640&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=126640&r1=126639&r2=126640&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Feb 28 01:25:18 2011
@@ -845,7 +845,7 @@
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;
}
More information about the cfe-commits
mailing list