OSDN Git Service

ADT: Use std::list in SparseBitVector, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 3 Sep 2016 02:43:42 +0000 (02:43 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 3 Sep 2016 02:43:42 +0000 (02:43 +0000)
commit87c2d47e50973b57e64557c08c1b65ab3d3c7d56
treee16f32cd24aa636613058135f00ac0f4e742b2e5
parentf86e7eec6548b530b57d038eb1535e999d87f0f7
ADT: Use std::list in SparseBitVector, NFC

The only intrusive thing about SparseBitVector's usage of ilist<> was
that new was usually called externally.  There were no custom traits.

It seems like the reason to switch to ilist in r41855 was to avoid
pointer invalidation, but std::list<> has that feature too.  Maybe
std::list<>::emplace makes this a little more obvious than it was then.

Switch over to std::list<> and simplify the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280573 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SparseBitVector.h