Skip to content

Commit b49cfb8

Browse files
committed
self-review: remove unused Loc
1 parent 72694b7 commit b49cfb8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clang/include/clang/Sema/SemaHLSL.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ class SemaHLSL : public SemaBase {
155155

156156
// Returns true when D is invalid and a diagnostic was produced
157157
bool
158-
handleRootSignatureElements(ArrayRef<hlsl::RootSignatureElement> Elements,
159-
SourceLocation Loc);
158+
handleRootSignatureElements(ArrayRef<hlsl::RootSignatureElement> Elements);
160159
void handleRootSignatureAttr(Decl *D, const ParsedAttr &AL);
161160
void handleNumThreadsAttr(Decl *D, const ParsedAttr &AL);
162161
void handleWaveSizeAttr(Decl *D, const ParsedAttr &AL);

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ void SemaHLSL::ActOnFinishRootSignatureDecl(
10661066
SourceLocation Loc, IdentifierInfo *DeclIdent,
10671067
ArrayRef<hlsl::RootSignatureElement> RootElements) {
10681068

1069-
if (handleRootSignatureElements(RootElements, Loc))
1069+
if (handleRootSignatureElements(RootElements))
10701070
return;
10711071

10721072
SmallVector<llvm::hlsl::rootsig::RootElement> Elements;
@@ -1082,7 +1082,7 @@ void SemaHLSL::ActOnFinishRootSignatureDecl(
10821082
}
10831083

10841084
bool SemaHLSL::handleRootSignatureElements(
1085-
ArrayRef<hlsl::RootSignatureElement> Elements, SourceLocation Loc) {
1085+
ArrayRef<hlsl::RootSignatureElement> Elements) {
10861086
// The following conducts analysis on resource ranges to detect and report
10871087
// any overlaps in resource ranges.
10881088
//

0 commit comments

Comments
 (0)