[ADT] Fix iplist_impl - use after move warnings (PR43943)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 6 Feb 2020 11:22:06 +0000 (11:22 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 6 Feb 2020 11:22:21 +0000 (11:22 +0000)
commit529e6f8791b624d94c10a04dc4e530e4a22ac520
treef5615374ac0311979acf4c488a3e5032bb539ced
parentd5e6e0a58b188627084d4714a4b2862c529870f8
[ADT] Fix iplist_impl - use after move warnings (PR43943)

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.

Differential Revision: https://reviews.llvm.org/D74062
llvm/include/llvm/ADT/ilist.h