================
@@ -5609,6 +5610,8 @@ bool Compiler<Emitter>::VisitCallExpr(const CallExpr *E) {
assert(Args.size() == 2);
IsAssignmentOperatorCall = true;
std::reverse(Args.begin(), Args.end());
+ const CXXRecordDecl *LHSRecord = Args[0]->getType()->getAsCXXRecordDecl();
+ ActivateLHS = !LHSRecord || LHSRecord->hasTrivialDefaultConstructor();
----------------
tbaederr wrote:
Yeah, I was just confused. `Args[0]` wasn't even the LHS here because it was
after the `reverse()`.
https://github.com/llvm/llvm-project/pull/192212
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits