Skip to content

Commit 1a9ea6c

Browse files
committed
remove unneeded function
1 parent 23e893a commit 1a9ea6c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7334,19 +7334,6 @@ static void handleHLSLShaderAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
73347334
D->addAttr(NewAttr);
73357335
}
73367336

7337-
HLSLShaderAttr *
7338-
Sema::mergeHLSLShaderAttr(Decl *D, const AttributeCommonInfo &AL,
7339-
HLSLShaderAttr::ShaderType ShaderType) {
7340-
if (HLSLShaderAttr *NT = D->getAttr<HLSLShaderAttr>()) {
7341-
if (NT->getType() != ShaderType) {
7342-
Diag(NT->getLocation(), diag::err_hlsl_attribute_param_mismatch) << AL;
7343-
Diag(AL.getLoc(), diag::note_conflicting_attribute);
7344-
}
7345-
return nullptr;
7346-
}
7347-
return HLSLShaderAttr::Create(Context, ShaderType, AL);
7348-
}
7349-
73507337
static void DiagnoseHLSLResourceRegType(Sema &S, SourceLocation &ArgLoc,
73517338
Decl *D, StringRef &Slot) {
73527339
// Samplers, UAVs, and SRVs are VarDecl types

0 commit comments

Comments
 (0)