Skip to content

Commit 842a52a

Browse files
authored
matrix is like vectors and do not have non-scalar members.
That means we don't need the extra recursion here.
1 parent 771989c commit 842a52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4174,7 +4174,7 @@ class InitListTransformer {
41744174
E, RowIdx, ColIdx, E->getEndLoc());
41754175
if (ElExpr.isInvalid())
41764176
return false;
4177-
if (!buildInitializerListImpl(ElExpr.get()))
4177+
if (!castInitializer(ElExpr.get()))
41784178
return false;
41794179
ElExpr.get()->setType(ElemTy);
41804180
}

0 commit comments

Comments
 (0)