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 551acb3 commit 676b8e7Copy full SHA for 676b8e7
stdlib/public/core/DictionaryBuilder.swift
@@ -106,6 +106,10 @@ extension _NativeDictionary {
106
// If the capacity is 0, then our storage is the empty singleton. Those are
107
// read only, so we shouldn't attempt to write to them.
108
if capacity == 0 {
109
+ let c = initializer(
110
+ UnsafeMutableBufferPointer(start: nil, count: 0),
111
+ UnsafeMutableBufferPointer(start: nil, count: 0))
112
+ _precondition(c == 0)
113
return
114
}
115
0 commit comments