[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
================
@@ -15517,7 +15523,13 @@ ExprResult Sema::CreateOverloadedBinOp(SourceLocation OpLoc,
// various built-in candidates, but as DR507 points out, this can lead to
// problems. So we do it this way, which pretty much follows what GCC does.
// Note that we go the traditional code path for compound assignment forms.
- if (Opc == BO_Assign && !Args[0]->getType()->isOverloadableType())
+ // In HLSL, user-defined structs/classes do not have or overloadable
----------------
bob80905 wrote:
I think this comment has a typo
https://github.com/llvm/llvm-project/pull/194989
More information about the cfe-commits
mailing list