================
@@ -16,7 +16,12 @@ struct uint3 {
   unsigned x = 0, y = 0, z = 0;
 };
 
-using dim3 = uint3;
+struct dim3 {
+  dim3() = default;
+  dim3(unsigned X, unsigned Y = 1, unsigned Z = 1) : x(X), y(Y), z(Z) {}
+
+  unsigned x = 1, y = 1, z = 1;
----------------
jdoerfert wrote:

dim3 is 1 initialized?

https://github.com/llvm/llvm-project/pull/212373
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to