This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Fix iplist_impl - use after move warnings (PR43943)
ClosedPublic

Authored by RKSimon on Feb 5 2020, 8:50 AM.

Details

Summary

As detailed on PR43943, we're seeing static analyzer use after move warnings in the iplist_impl move constructor/operator as they call std::move to both the TraitsT and IntrusiveListT base classes.

As suggested by @dexonsmith this patch casts the moved value to the base classes to silence the warnings.

Diff Detail

Event Timeline

RKSimon created this revision.Feb 5 2020, 8:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2020, 8:50 AM
dexonsmith accepted this revision.Feb 5 2020, 10:50 AM

LGTM. Thanks for the fix!

This revision is now accepted and ready to land.Feb 5 2020, 10:50 AM
MaskRay accepted this revision.Feb 5 2020, 12:16 PM
This revision was automatically updated to reflect the committed changes.
RKSimon marked an inline comment as done.Feb 6 2020, 3:51 AM
RKSimon added inline comments.
llvm/include/llvm/ADT/ilist.h
206

rG4c330be678c9 fixed this typo