[libcxx-commits] [libcxxabi] 34c97d5 - [libcxxabi] Fix build after D111947
Vitaly Buka via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 21 18:35:38 PDT 2021
Author: Vitaly Buka
Date: 2021-10-21T18:35:12-07:00
New Revision: 34c97d5ae35405106b7e34763882756a65ff2d67
URL: https://github.com/llvm/llvm-project/commit/34c97d5ae35405106b7e34763882756a65ff2d67
DIFF: https://github.com/llvm/llvm-project/commit/34c97d5ae35405106b7e34763882756a65ff2d67.diff
LOG: [libcxxabi] Fix build after D111947
Added:
Modified:
libcxxabi/src/cxa_demangle.cpp
Removed:
################################################################################
diff --git a/libcxxabi/src/cxa_demangle.cpp b/libcxxabi/src/cxa_demangle.cpp
index 3045f6edb304..6f46a9453148 100644
--- a/libcxxabi/src/cxa_demangle.cpp
+++ b/libcxxabi/src/cxa_demangle.cpp
@@ -342,13 +342,13 @@ __cxa_demangle(const char *MangledName, char *Buf, size_t *N, int *Status) {
int InternalStatus = demangle_success;
Demangler Parser(MangledName, MangledName + std::strlen(MangledName));
- OutputStream S;
+ OutputBuffer S;
Node *AST = Parser.parse();
if (AST == nullptr)
InternalStatus = demangle_invalid_mangled_name;
- else if (!initializeOutputStream(Buf, N, S, 1024))
+ else if (!initializeOutputBuffer(Buf, N, S, 1024))
InternalStatus = demangle_memory_alloc_failure;
else {
assert(Parser.ForwardTemplateRefs.empty());
More information about the libcxx-commits
mailing list