diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-18 05:18:55 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-18 05:18:55 +0000 |
commit | 5b74665a419d97317a575e96db7ccf336f6b6635 (patch) | |
tree | 98230903692e866725ef17da47efdff5b0af3c46 /clang/lib/Sema/DeclSpec.cpp | |
parent | 2baef8f466447d8621be9e8bfbb6b14e7baba2a4 (diff) | |
download | bcm5719-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/Sema/DeclSpec.cpp')
-rw-r--r-- | clang/lib/Sema/DeclSpec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index cc644c7093b..a55cdcccee5 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -558,7 +558,7 @@ bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, // OpenCL v1.2 s6.8 changes this to "The auto and register storage-class // specifiers are not supported." if (S.getLangOpts().OpenCL && - !S.getOpenCLOptions().cl_clang_storage_class_specifiers) { + !S.getOpenCLOptions().isEnabled("cl_clang_storage_class_specifiers")) { switch (SC) { case SCS_extern: case SCS_private_extern: |