diff --git a/lldb/source/Host/macosx/cfcpp/CFCData.cpp b/lldb/source/Host/macosx/cfcpp/CFCData.cpp --- a/lldb/source/Host/macosx/cfcpp/CFCData.cpp +++ b/lldb/source/Host/macosx/cfcpp/CFCData.cpp @@ -47,8 +47,7 @@ CFCReleaser stream( ::CFWriteStreamCreateWithAllocatedBuffers(alloc, alloc)); ::CFWriteStreamOpen(stream.get()); - CFIndex len = - ::CFPropertyListWriteToStream(plist, stream.get(), format, NULL); + CFIndex len = ::CFPropertyListWrite(plist, stream.get(), format, 0, nullptr); if (len > 0) reset((CFDataRef)::CFWriteStreamCopyProperty(stream.get(), kCFStreamPropertyDataWritten));