summaryrefslogtreecommitdiff
path: root/Source/WTF/wtf/HashTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WTF/wtf/HashTable.h')
-rw-r--r--Source/WTF/wtf/HashTable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WTF/wtf/HashTable.h b/Source/WTF/wtf/HashTable.h
index 712022d71..f95167f23 100644
--- a/Source/WTF/wtf/HashTable.h
+++ b/Source/WTF/wtf/HashTable.h
@@ -845,7 +845,7 @@ namespace WTF {
// This initializes the bucket without copying the empty value.
// That makes it possible to use this with types that don't support copying.
// The memset to 0 looks like a slow operation but is optimized by the compilers.
- memset(&bucket, 0, sizeof(bucket));
+ memset(static_cast<void*>(std::addressof(bucket)), 0, sizeof(bucket));
}
};