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.
2 parents 8b170f9 + 7145afb commit cab7f94Copy full SHA for cab7f94
include/swift/Demangling/Demangler.h
@@ -140,7 +140,7 @@ class NodeFactory {
140
#endif
141
142
// Do we have enough space in the current slab?
143
- if (CurPtr + ObjectSize > End) {
+ if (!CurPtr || CurPtr + ObjectSize > End) {
144
// No. We have to malloc a new slab.
145
// We double the slab size for each allocated slab.
146
SlabSize = std::max(SlabSize * 2, ObjectSize + alignof(T));
0 commit comments