[llvm-bugs] [Bug 43943] New: iplist_impl - use after move warnings
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 8 04:02:31 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=43943
Bug ID: 43943
Summary: iplist_impl - use after move warnings
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: llvm-dev at redking.me.uk
CC: david.bolvansky at gmail.com, dexonsmith at apple.com,
llvm-bugs at lists.llvm.org
We're seeing static analyzer use after move warnings on both these cases:
iplist_impl(iplist_impl &&X)
: TraitsT(std::move(X)), IntrusiveListT(std::move(X)) {}
iplist_impl &operator=(iplist_impl &&X) {
*static_cast<TraitsT *>(this) = std::move(X);
*static_cast<IntrusiveListT *>(this) = std::move(X);
return *this;
}
Duncan - you committed this back at rL281181 - any suggestions?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191108/e99a329c/attachment.html>
More information about the llvm-bugs
mailing list