UseListOrder: Guarantee that shuffles change use-list order
[oota-llvm.git] / lib / IR / DataLayout.cpp
index 3aa775097dfd0c5399842ab296cc93b9c308c3d6..dea05fbef4ab426756b06805a643078341c6124c 100644 (file)
@@ -519,7 +519,8 @@ const StructLayout *DataLayout::getStructLayout(StructType *Ty) const {
 }
 
 std::string DataLayout::getStringRepresentation() const {
-  string_ostream OS;
+  std::string Result;
+  raw_string_ostream OS(Result);
 
   OS << (LittleEndian ? "e" : "E");