Depends on D114047.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/sanitizer_common/sanitizer_dense_map.h | ||
---|---|---|
73 | Now it's more reasonable to rename Val to Key. | |
78 | Now it's more reasonable to rename Val to Key. | |
84 | Now it's more reasonable to rename Val to Key. | |
287 | I think we can use existing RoundUpToPowerOfTwo here. | |
622 | I think we can use existing RoundUpToPowerOfTwo here if remove - 1. |
compiler-rt/lib/sanitizer_common/sanitizer_dense_map.h | ||
---|---|---|
80 | If the header <type_traits> is safe to use from compiler-rt, we could static_assert(is_trivially_destructible<ValueT>....). | |
448 | I think there's no reason for us to loose perfect forwarding. We just have to open-code forward/move, like we already do for New() in compiler-rt/lib/tsan/rtl/tsan_mman.h. This means we should also be able to provide emplace(). |
use type_traits
compiler-rt/lib/sanitizer_common/sanitizer_dense_map.h | ||
---|---|---|
80 | I copied some stuff into sanitizer_type_traits.h and supported non trivially copiable/destructable types |
If the header <type_traits> is safe to use from compiler-rt, we could static_assert(is_trivially_destructible<ValueT>....).