[clang] Enable matrices in HLSL (PR #111415)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 10 10:41:07 PDT 2024
================
@@ -1381,7 +1381,7 @@ void ASTContext::InitBuiltinTypes(const TargetInfo &Target,
if (LangOpts.OpenACC && !LangOpts.OpenMP) {
InitBuiltinType(ArraySectionTy, BuiltinType::ArraySection);
}
- if (LangOpts.MatrixTypes)
+ if (LangOpts.MatrixTypes || LangOpts.HLSL)
----------------
llvm-beanz wrote:
We can add `MatrixTypes` to the definition of HLSL in LangStandards.def, which is probably a safer approach to this.
https://github.com/llvm/llvm-project/pull/111415
More information about the cfe-commits
mailing list