]> granicus.if.org Git - clang/commitdiff
reverting this because it breaks some blocks cases, I'll send doug a testcase
authorTed Kremenek <kremenek@apple.com>
Sat, 22 Nov 2008 01:04:48 +0000 (01:04 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 22 Nov 2008 01:04:48 +0000 (01:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59850 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index faa7178f2547888f0817813c97ae75627d65eb31..ead873447bc50aba28858116b1a9359e1fa37694 100644 (file)
@@ -570,6 +570,9 @@ static void InitializeLanguageStandard(LangOptions &Options, LangKind LK,
   } else {
     Options.NeXTRuntime = Target->useNeXTRuntimeAsDefault();
   }
+
+  if (Options.CPlusPlus)
+    Options.Blocks = 0;   
 }
 
 static llvm::cl::opt<bool>