================
@@ -968,6 +972,23 @@ static bool pathOnlyHandlesGslPointer(IndirectLocalPath 
&Path) {
   return false;
 }
 
+static bool isAssginmentOperatorLifetimeBound(CXXMethodDecl *CMD) {
+  if (!CMD)
+    return false;
+  assert(CMD->getOverloadedOperator() == OverloadedOperatorKind::OO_Equal);
----------------
hokein wrote:

It is impossible to hit compound assignment operator for the current 
implementation, we only set the  `AssignedEntity::AssignmentOperator` for the 
`OO_Equal` case (see the `clang/lib/Sema/SemaOverload.cpp`)

It is possible/trivial to support them, but I don't have plan to do it (I guess 
they should be rare in practice).

To avoid the confusion, I think we can just drop this assertion.

https://github.com/llvm/llvm-project/pull/106997
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to