From a361e55adabf5a15604519327dfa9ad59a36c68b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Tue, 9 Jan 2024 16:36:32 +0100 Subject: [PATCH] fixup! sema: gracefully reject 0-sized IO patch fix bad error message --- tools/clang/lib/Sema/SemaHLSL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clang/lib/Sema/SemaHLSL.cpp b/tools/clang/lib/Sema/SemaHLSL.cpp index d76943b877..a2c2dcbffe 100644 --- a/tools/clang/lib/Sema/SemaHLSL.cpp +++ b/tools/clang/lib/Sema/SemaHLSL.cpp @@ -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; }