summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/opencl-c.h
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-12-18 05:18:55 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-12-18 05:18:55 +0000
commit5b74665a419d97317a575e96db7ccf336f6b6635 (patch)
tree98230903692e866725ef17da47efdff5b0af3c46 /clang/lib/Headers/opencl-c.h
parent2baef8f466447d8621be9e8bfbb6b14e7baba2a4 (diff)
downloadbcm5719-llvm-5b74665a419d97317a575e96db7ccf336f6b6635.tar.gz
bcm5719-llvm-5b74665a419d97317a575e96db7ccf336f6b6635.zip
Recommit r289979 [OpenCL] Allow disabling types and declarations associated with extensions
Fixed undefined behavior due to cast integer to bool in initializer list. llvm-svn: 290056
Diffstat (limited to 'clang/lib/Headers/opencl-c.h')
-rw-r--r--clang/lib/Headers/opencl-c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h
index 004eca35a22..0c25d312709 100644
--- a/clang/lib/Headers/opencl-c.h
+++ b/clang/lib/Headers/opencl-c.h
@@ -15490,6 +15490,10 @@ int printf(__constant const char* st, ...);
#define CLK_FILTER_NEAREST 0x10
#define CLK_FILTER_LINEAR 0x20
+#ifdef cl_khr_gl_msaa_sharing
+#pragma OPENCL EXTENSION cl_khr_gl_msaa_sharing : enable
+#endif //cl_khr_gl_msaa_sharing
+
/**
* Use the coordinate (coord.xy) to do an element lookup in
* the 2D image object specified by image.
OpenPOWER on IntegriCloud