Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 85bf221

Browse files
committed
Fix for OutputStream->OutputBuffer rename
1 parent ddbf196 commit 85bf221

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libcxxabi/src/cxa_demangle.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -342,21 +342,21 @@ __cxa_demangle(const char *MangledName, char *Buf, size_t *N, int *Status) {
342342

343343
int InternalStatus = demangle_success;
344344
Demangler Parser(MangledName, MangledName + std::strlen(MangledName));
345-
OutputBuffer S;
345+
OutputBuffer O;
346346

347347
Node *AST = Parser.parse();
348348

349349
if (AST == nullptr)
350350
InternalStatus = demangle_invalid_mangled_name;
351-
else if (!initializeOutputBuffer(Buf, N, S, 1024))
351+
else if (!initializeOutputBuffer(Buf, N, O, 1024))
352352
InternalStatus = demangle_memory_alloc_failure;
353353
else {
354354
assert(Parser.ForwardTemplateRefs.empty());
355-
AST->print(S);
356-
S += '\0';
355+
AST->print(O);
356+
O += '\0';
357357
if (N != nullptr)
358-
*N = S.getCurrentPosition();
359-
Buf = S.getBuffer();
358+
*N = O.getCurrentPosition();
359+
Buf = O.getBuffer();
360360
}
361361

362362
if (Status)

0 commit comments

Comments
 (0)