[clang] [HLSL] Implement HLSL splatting (PR #118992)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 13 15:14:51 PST 2025
================
@@ -4931,7 +4931,9 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
// C99 6.7.5.3p1: The return type may not be a function or array type.
// For conversion functions, we'll diagnose this particular error later.
- if (!D.isInvalidType() && (T->isArrayType() || T->isFunctionType()) &&
+ if (!D.isInvalidType() &&
+ ((!S.getLangOpts().HLSL && T->isArrayType()) ||
+ T->isFunctionType()) &&
----------------
llvm-beanz wrote:
This too...
https://github.com/llvm/llvm-project/pull/118992
More information about the cfe-commits
mailing list