================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to