diff options
Diffstat (limited to 'lib/TableGen/SetTheory.cpp')
-rw-r--r-- | lib/TableGen/SetTheory.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/TableGen/SetTheory.cpp b/lib/TableGen/SetTheory.cpp index c99c2bab45..594d4d9a94 100644 --- a/lib/TableGen/SetTheory.cpp +++ b/lib/TableGen/SetTheory.cpp @@ -209,13 +209,12 @@ struct SequenceOp : public SetTheory::Operator { break; else if (Step < 0 && From < To) break; - std::string Name; - raw_string_ostream OS(Name); - OS << format(Format.c_str(), unsigned(From)); - Record *Rec = Records.getDef(OS.str()); + string_ostream Name; + Name << format(Format.c_str(), unsigned(From)); + Record *Rec = Records.getDef(Name.str()); if (!Rec) - PrintFatalError(Loc, "No def named '" + Name + "': " + - Expr->getAsString()); + PrintFatalError(Loc, "No def named '" + Name.str() + "': " + + Expr->getAsString()); // Try to reevaluate Rec in case it is a set. if (const RecVec *Result = ST.expand(Rec)) Elts.insert(Result->begin(), Result->end()); |