Skip to content

Commit 5236b68

Browse files
committed
Fix: diagnostic param missing
1 parent f65095e commit 5236b68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/clang/lib/Sema/SemaDXR.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,8 @@ void DiagnoseBuiltinCallWithPayload(Sema &S, const VarDecl *Payload,
829829
// Verify that the payload type is legal
830830
if (!hlsl::IsHLSLCopyableAnnotatableRecord(Payload->getType())) {
831831
S.Diag(Payload->getLocation(), diag::err_payload_attrs_must_be_udt)
832-
<< /*payload|attributes|callable*/ 0 << Payload;
832+
<< /*payload|attributes|callable*/ 0 << /*parameter %2|type*/ 0
833+
<< Payload;
833834
return;
834835
}
835836

0 commit comments

Comments
 (0)