OSDN Git Service

[ADT] Fix a bug in DenseSet's initializer_list constructor.
authorLang Hames <lhames@gmail.com>
Mon, 15 Oct 2018 18:34:36 +0000 (18:34 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 15 Oct 2018 18:34:36 +0000 (18:34 +0000)
commitfcb831da6a919bd658d85ea26268dccb5cc9d086
tree6619243adfad9b997dac0657220758bcfe3b9d08
parentabfefc95baa455d8beadac40792d1384228736b1
[ADT] Fix a bug in DenseSet's initializer_list constructor.

Without this fix, DenseSet crashes with an assertion if constructed with an
initializer_list whose length is not a power of two.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344542 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/DenseSet.h
unittests/ADT/DenseSetTest.cpp