summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/demangle/Utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/src/demangle/Utility.h')
-rw-r--r--libcxxabi/src/demangle/Utility.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxxabi/src/demangle/Utility.h b/libcxxabi/src/demangle/Utility.h
index 86113763031..b5e9b5e42cf 100644
--- a/libcxxabi/src/demangle/Utility.h
+++ b/libcxxabi/src/demangle/Utility.h
@@ -176,13 +176,13 @@ inline bool initializeOutputStream(char *Buf, size_t *N, OutputStream &S,
if (Buf == nullptr) {
Buf = static_cast<char *>(std::malloc(InitSize));
if (Buf == nullptr)
- return true;
+ return false;
BufferSize = InitSize;
} else
BufferSize = *N;
S.reset(Buf, BufferSize);
- return false;
+ return true;
}
} // namespace
OpenPOWER on IntegriCloud