From: Daniel Dunbar Date: Fri, 10 Oct 2008 00:20:52 +0000 (+0000) Subject: Disable blocks support in C++ mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b0ee502fcf703ba5cf9e31362b4e25190bc8b0b;p=clang Disable blocks support in C++ mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57334 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 8e5bca22f8..f415de11ce 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -487,6 +487,9 @@ static void InitializeLanguageStandard(LangOptions &Options, LangKind LK, } else { Options.NeXTRuntime = Target->useNeXTRuntimeAsDefault(); } + + if (Options.CPlusPlus) + Options.Blocks = 0; } static llvm::cl::opt