[clang] [Matrix][Clang][HLSL] Move MaxMatrixDimension to a LangOpt (PR #163307)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 15 18:40:56 PDT 2025
================
@@ -159,7 +159,8 @@ void HLSLExternalSemaSource::defineHLSLMatrixAlias() {
SourceLocation(), ColsParam));
TemplateParams.emplace_back(ColsParam);
- const unsigned MaxMatDim = 4;
+ const unsigned MaxMatDim = SemaPtr->getLangOpts().MaxMatrixDimension;
+ ;
----------------
farzonl wrote:
clang-format didn't like deleting that line. so just removed the `;`.
https://github.com/llvm/llvm-project/pull/163307
More information about the cfe-commits
mailing list