llvm.org GIT mirror llvm / 639888f
Revert "llvm-mt: Fix release of OutputDoc" Multiple bots are broken. This reverts commit r312207. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312212 91177308-0d34-0410-b5e6-96231b3b80d8 Vitaly Buka 1 year, 11 months ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
651651 xmlNodePtr CombinedRoot = xmlDocGetRootElement(CombinedDoc);
652652 std::vector RequiredPrefixes;
653653 checkAndStripPrefixes(CombinedRoot, RequiredPrefixes);
654 std::unique_ptr OutputDoc(
655 xmlNewDoc((const unsigned char *)"1.0"), &xmlFreeDoc);
654 std::unique_ptr OutputDoc(xmlNewDoc((const unsigned char *)"1.0"));
656655 xmlDocSetRootElement(OutputDoc.get(), CombinedRoot);
657656 xmlKeepBlanksDefault(0);
658657 xmlDocDumpFormatMemoryEnc(OutputDoc.get(), &XmlBuff, &BufferSize, "UTF-8",
659658 1);
660 xmlDocSetRootElement(OutputDoc.get(), nullptr);
661659 }
662660 if (BufferSize == 0)
663661 return nullptr;