Skip to content

Commit 46afbd6

Browse files
committed
Remove unused parameter to SemaHLSL::transformInitList
1 parent 279cb38 commit 46afbd6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

clang/include/clang/Sema/SemaHLSL.h

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

152152
QualType getInoutParameterType(QualType Ty);
153153

154-
bool TransformInitList(const InitializedEntity &Entity,
155-
const InitializationKind &Kind, InitListExpr *Init);
154+
bool transformInitList(const InitializedEntity &Entity, InitListExpr *Init);
156155

157156
private:
158157
// HLSL resource type attributes need to be processed all at once.

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,8 +3439,7 @@ class InitListTransformer {
34393439
};
34403440
} // namespace
34413441

3442-
bool SemaHLSL::TransformInitList(const InitializedEntity &Entity,
3443-
const InitializationKind &Kind,
3442+
bool SemaHLSL::transformInitList(const InitializedEntity &Entity,
34443443
InitListExpr *Init) {
34453444
// If the initializer is a scalar, just return it.
34463445
if (Init->getType()->isScalarType())

clang/lib/Sema/SemaInit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4845,7 +4845,7 @@ static void TryListInitialization(Sema &S,
48454845
QualType DestType = Entity.getType();
48464846

48474847
if (S.getLangOpts().HLSL &&
4848-
!S.HLSL().TransformInitList(Entity, Kind, InitList))
4848+
!S.HLSL().transformInitList(Entity, InitList))
48494849
return;
48504850

48514851
// C++ doesn't allow scalar initialization with more than one argument.

0 commit comments

Comments
 (0)