[all-commits] [llvm/llvm-project] 529e6f: [ADT] Fix iplist_impl - use after move warnings (P...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Feb 6 03:24:00 PST 2020

  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 529e6f8791b624d94c10a04dc4e530e4a22ac520
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-02-06 (Thu, 06 Feb 2020)

  Changed paths:
    M llvm/include/llvm/ADT/ilist.h

  Log Message:
  [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

More information about the All-commits mailing list