[DiagnosticPrinter] Use the appropriate method to print a Twine object in a

raw_ostream.

llvm-svn: 197531
This commit is contained in:
Quentin Colombet 2013-12-17 22:35:07 +00:00
parent 7f077ea70a
commit de17e8bc87

View File

@ -90,7 +90,7 @@ DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(double N) {
}
DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Twine &Str) {
Stream << Str.getSingleStringRef();
Str.print(Stream);
return *this;
}