Skip to content

Commit 019d4dc

Browse files
committed
address Damyang
1 parent f012108 commit 019d4dc

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4305,18 +4305,6 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
43054305
} else {
43064306
llvm_unreachable("expected DXIL or SPIR-V target");
43074307
}
4308-
// validate that if fnative-half-type is given, that
4309-
// the language standard is at least hlsl2021, and that
4310-
// the target shader model is at least 6.2
4311-
if (Args.getLastArg(OPT_fnative_half_type)) {
4312-
bool LangStdArgIsValid = Opts.LangStd >= LangStandard::lang_hlsl2021;
4313-
bool TPArgIsValid = T.getOSVersion() >= VersionTuple(6, 2);
4314-
4315-
// if the HLSL Version is not at least 2021, or the shader model is not
4316-
// at least 6.2, then enable-16bit-types is an invalid flag.
4317-
if (!(LangStdArgIsValid && TPArgIsValid))
4318-
Diags.Report(diag::err_drv_hlsl_enable_16bit_types_option_invalid);
4319-
}
43204308
} else
43214309
Diags.Report(diag::err_drv_hlsl_unsupported_target) << T.str();
43224310
}

0 commit comments

Comments
 (0)