diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-16 21:23:55 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-16 21:23:55 +0000 |
commit | 7fdb98e4e14616ecbea0439380888091d45174cf (patch) | |
tree | 07de74978b173730f776c3e97ec287538efb74b9 /lib/Sema/SemaCast.cpp | |
parent | b0bfcdc53727ae57145e9b90d83977c74bdfcbeb (diff) | |
download | clang-7fdb98e4e14616ecbea0439380888091d45174cf.tar.gz |
Revert r289979 due to regressions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCast.cpp')
-rw-r--r-- | lib/Sema/SemaCast.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaCast.cpp b/lib/Sema/SemaCast.cpp index 6222e4cec4..d1e37c02c1 100644 --- a/lib/Sema/SemaCast.cpp +++ b/lib/Sema/SemaCast.cpp @@ -2529,8 +2529,7 @@ void CastOperation::CheckCStyleCast() { } } - if (Self.getLangOpts().OpenCL && - !Self.getOpenCLOptions().isEnabled("cl_khr_fp16")) { + if (Self.getLangOpts().OpenCL && !Self.getOpenCLOptions().cl_khr_fp16) { if (DestType->isHalfType()) { Self.Diag(SrcExpr.get()->getLocStart(), diag::err_opencl_cast_to_half) << DestType << SrcExpr.get()->getSourceRange(); |