Skip to content

Commit

Permalink
fixup! sema: gracefully reject 0-sized IO patch
Browse files Browse the repository at this point in the history
fix bad error message
  • Loading branch information
Keenuts committed Jan 9, 2024
1 parent 0c06a05 commit a361e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/clang/lib/Sema/SemaHLSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15144,7 +15144,7 @@ void DiagnoseDomainEntry(Sema &S, FunctionDecl *FD, llvm::StringRef StageName) {
continue;
if (hlsl::GetHLSLInputPatchCount(param->getType()) > 0)
continue;
S.Diags.Report(param->getLocation(), diag::err_hlsl_inputpatch_size);
S.Diags.Report(param->getLocation(), diag::err_hlsl_outputpatch_size);
}
return;
}
Expand Down

0 comments on commit a361e55

Please sign in to comment.