[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 17:23:56 PDT 2025
================
@@ -1877,6 +1887,93 @@ void InitListChecker::CheckReferenceType(const InitializedEntity &Entity,
AggrDeductionCandidateParamTypes->push_back(DeclType);
}
+void InitListChecker::CheckMatrixType(const InitializedEntity &Entity,
----------------
farzonl wrote:
That said the diagnostics in `CheckMatrixType` never trigger and are now preceded by the ones in SemaHLSL and the flatten mixed vector/matrix/scalar elements is also done in SemaHLSL so I will investigate to see if we can reduce the scope of what `CheckMatrixType` is doing.
https://github.com/llvm/llvm-project/pull/162743
More information about the cfe-commits
mailing list