Index: lib/BinaryFormat/MsgPackDocumentYAML.cpp =================================================================== --- lib/BinaryFormat/MsgPackDocumentYAML.cpp +++ lib/BinaryFormat/MsgPackDocumentYAML.cpp @@ -61,7 +61,7 @@ llvm_unreachable("not scalar"); break; } - return S; + return OS.str(); } /// Convert the StringRef and use it to set this DocNode (assuming scalar). If