[clang] [HLSL] Disable implicit constructors for user-defined structs/classes (PR #194989)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 13:09:56 PDT 2026


================
@@ -12,7 +12,7 @@ struct Pair {
 
   // In HLSL 202x, this is a move assignment rather than a copy.
   int getSecond() {
-    this = Pair();
+    this = {0, 123};
----------------
bob80905 wrote:

Same as above here

https://github.com/llvm/llvm-project/pull/194989


More information about the cfe-commits mailing list