Skip to content

Commit 44d2a87

Browse files
tahonermanndbudanov-cmplr
authored andcommitted
[HLSL] Restore code lost in merge commit
Code in handleInitPriorityAttr() to emit an HLSL specific diagnostic was lost in the merge. This change restores that lost code.
1 parent 8108b22 commit 44d2a87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4955,6 +4955,11 @@ static void handleInitPriorityAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
49554955
return;
49564956
}
49574957

4958+
if (S.getLangOpts().HLSL) {
4959+
S.Diag(AL.getLoc(), diag::err_hlsl_init_priority_unsupported);
4960+
return;
4961+
}
4962+
49584963
if (S.getCurFunctionOrMethodDecl()) {
49594964
S.Diag(AL.getLoc(), diag::err_init_priority_object_attr);
49604965
AL.setInvalid();

0 commit comments

Comments
 (0)