[clang] [clang] Respect the lifetimebound in assignment operator. (PR #106997)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 2 08:17:19 PDT 2024
================
@@ -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);
----------------
Xazax-hun wrote:
What about compound assignment operators? Do you plan to support those in a follow-up?
That being said, I'd love to see a test case just to make sure this assert is not triggered.
https://github.com/llvm/llvm-project/pull/106997
More information about the cfe-commits
mailing list