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

raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Quentin Colombet 2013-12-17 22:35:07 +00:00
parent 65c4329181
commit 51037451f9

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;
}