Revert "Introduce a string_ostream string builder facilty"
[oota-llvm.git] / lib / TableGen / TGParser.cpp
index 76ef696c68c2fa3fb5a05cab76e56eb51682c29c..0550692ebce7ff40f9d2c9084dd5dc42e518c7f7 100644 (file)
@@ -1307,7 +1307,8 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType,
     if (ItemType) {
       ListRecTy *ListType = dyn_cast<ListRecTy>(ItemType);
       if (!ListType) {
-        string_ostream ss;
+        std::string s;
+        raw_string_ostream ss(s);
         ss << "Type mismatch for list, expected list type, got "
            << ItemType->getAsString();
         TokError(ss.str());