[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)
commit28332c415c323d3d7db1031bd39f62498f18486e
tree9d74925557b9a31ad776655ff1a63e35434155a8
parent4cf1da0e021bbd05665e8dbc7eebb94a5f1ea461
[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.

llvm-svn: 344542
llvm/include/llvm/ADT/DenseSet.h
llvm/unittests/ADT/DenseSetTest.cpp