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