File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1753,12 +1753,7 @@ void Sema::checkDeviceDecl(const ValueDecl *D, SourceLocation Loc) {
1753
1753
if (Ty->isDependentType ())
1754
1754
return ;
1755
1755
1756
- auto IsSYCLDeviceCuda = getLangOpts ().SYCLIsDevice &&
1757
- Context.getTargetInfo ().getTriple ().isNVPTX ();
1758
- if ((Ty->isFloat16Type () && !Context.getTargetInfo ().hasFloat16Type () &&
1759
- // Disable check for SYCL CUDA BE until FP16 support is properly
1760
- // reported there (issue#1799)
1761
- !IsSYCLDeviceCuda) ||
1756
+ if ((Ty->isFloat16Type () && !Context.getTargetInfo ().hasFloat16Type ()) ||
1762
1757
((Ty->isFloat128Type () ||
1763
1758
(Ty->isRealFloatingType () && Context.getTypeSize (Ty) == 128 )) &&
1764
1759
!Context.getTargetInfo ().hasFloat128Type ()) ||
You can’t perform that action at this time.
0 commit comments