We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4e0df commit c3d39cbCopy full SHA for c3d39cb
llvm/include/llvm/ADT/DenseMap.h
@@ -120,7 +120,7 @@ class DenseMapBase : public DebugEpochBase {
120
}
121
122
const KeyT EmptyKey = getEmptyKey();
123
- if (std::is_trivially_destructible<ValueT>::value) {
+ if constexpr (std::is_trivially_destructible_v<ValueT>) {
124
// Use a simpler loop when values don't need destruction.
125
for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P)
126
P->getFirst() = EmptyKey;
0 commit comments