[clang] [HLSL] Remove support for constructors for user defined structs (PR #190089)
Sarah Spall via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 13 09:49:30 PDT 2026
================
@@ -1527,7 +1527,10 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
if (D.getInit() && (Ty->isArrayType() || Ty->isRecordType()) &&
(D.isConstexpr() ||
((Ty.isPODType(getContext()) ||
- getContext().getBaseElementType(Ty)->isObjCObjectPointerType()) &&
+ getContext().getBaseElementType(Ty)->isObjCObjectPointerType() ||
+ // If HLSL, then check if it is a constant initializer because
+ // PODness will no longer be true for any user defined structs.
----------------
spall wrote:
https://github.com/llvm/llvm-project/pull/190089#discussion_r3059603258
https://github.com/llvm/llvm-project/pull/190089
More information about the cfe-commits
mailing list