From 0b0ee502fcf703ba5cf9e31362b4e25190bc8b0b Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 10 Oct 2008 00:20:52 +0000 Subject: [PATCH] Disable blocks support in C++ mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57334 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/clang.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.40.0