summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-06-14 21:43:01 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-06-14 21:43:01 +0000
commit18e3fd3ad671d039e45fb47bfd65b39f5e46d2c0 (patch)
treecaa9800168a070fc9dbf30462ca7586eb2164aff /clang/lib/Sema/SemaExpr.cpp
parent07543a8c2d036d39383c7d1d6a73c9bfea78d2af (diff)
downloadbcm5719-llvm-18e3fd3ad671d039e45fb47bfd65b39f5e46d2c0.tar.gz
bcm5719-llvm-18e3fd3ad671d039e45fb47bfd65b39f5e46d2c0.zip
[OpenCL] Enable -fblocks by default for OpenCL 2.0 and above.
Reviewed as part of http://reviews.llvm.org/D20444 llvm-svn: 272720
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 8f0f6017b31..6f23115f02a 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -12066,7 +12066,7 @@ ExprResult Sema::ActOnBlockStmtExpr(SourceLocation CaretLoc,
Stmt *Body, Scope *CurScope) {
// If blocks are disabled, emit an error.
if (!LangOpts.Blocks)
- Diag(CaretLoc, diag::err_blocks_disable);
+ Diag(CaretLoc, diag::err_blocks_disable) << LangOpts.OpenCL;
// Leave the expression-evaluation context.
if (hasAnyUnrecoverableErrorsInThisFunction())
OpenPOWER on IntegriCloud