diff options
author | Justin Lebar <jlebar@google.com> | 2016-10-24 16:06:53 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-10-24 16:06:53 +0000 |
commit | 566eb864b670a960de4375432657aa24a9e88316 (patch) | |
tree | 94ab12ee6d42d26290dbb1b64fc007f318759d1e /llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp | |
parent | 6815468768c9f87a63cda5a05e18ca4a82dbe7d7 (diff) | |
download | llvm-566eb864b670a960de4375432657aa24a9e88316.zip llvm-566eb864b670a960de4375432657aa24a9e88316.tar.gz llvm-566eb864b670a960de4375432657aa24a9e88316.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions