llvm.org GIT mirror llvm / 2ce7ffd
Return copy of XML dump COFF/DriverUtils.cpp uses buffer after WindowsManifestMerger destroyed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312408 91177308-0d34-0410-b5e6-96231b3b80d8 Vitaly Buka 1 year, 11 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
676676 Buffer.reset(Buff);
677677 }
678678
679 return BufferSize ? MemoryBuffer::getMemBuffer(StringRef(
679 return BufferSize ? MemoryBuffer::getMemBufferCopy(StringRef(
680680 FROM_XML_CHAR(Buffer.get()), (size_t)BufferSize))
681681 : nullptr;
682682 }