diff options
author | John McCall <rjmccall@apple.com> | 2013-02-12 01:29:43 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-02-12 01:29:43 +0000 |
commit | 9dd74c5504c743c96ea3a1d691d6a75ec3a98147 (patch) | |
tree | f1121c7876d52867edccb389dcfba07bb3f90526 /lib/Sema/SemaCast.cpp | |
parent | c2808e705eb8a1a825a5807cabc16d55052c31bd (diff) |
Diagnose loads of 'half' l-values in OpenCL.
Patch by Joey Gouly!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCast.cpp')
-rw-r--r-- | lib/Sema/SemaCast.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Sema/SemaCast.cpp b/lib/Sema/SemaCast.cpp index d1e95d7df9..e6dc0bd8bc 100644 --- a/lib/Sema/SemaCast.cpp +++ b/lib/Sema/SemaCast.cpp @@ -2111,12 +2111,6 @@ void CastOperation::CheckCStyleCast() { SrcExpr = ExprError(); return; } - if (SrcExpr.get()->getType()->isHalfType()) { - Self.Diag(SrcExpr.get()->getLocStart(), diag::err_opencl_cast_from_half) - << SrcType << SrcExpr.get()->getSourceRange(); - SrcExpr = ExprError(); - return; - } } // ARC imposes extra restrictions on casts. |