1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/include
Justin Lebar c7b51dd8b5 [ADT] static_assert that SmallDenseMap is instantiated with a power-of-two number of inline buckets.
Summary:
If you try to instantiate it with a non-power-of-two buckets, DenseMap
will assert at runtime (!) if we ever outgrow our inline storage.

I believe using a constexpr function inside of a static_assert is safe
now that we've unsupported MSVC 2013 and GCC < 4.8.

Reviewers: bkramer, qcolombet, escha

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D25900

llvm-svn: 284985
2016-10-24 16:06:53 +00:00
..
llvm [ADT] static_assert that SmallDenseMap is instantiated with a power-of-two number of inline buckets. 2016-10-24 16:06:53 +00:00
llvm-c [C API] Add LLVMConstExactUDiv and LLVMBuildExactUDiv functions. 2016-10-04 23:32:42 +00:00