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 fd3e3cf commit 7145afbCopy full SHA for 7145afb
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