[DiagnosticPrinter] Use the appropriate method to print a Twine object in a
authorQuentin Colombet <qcolombet@apple.com>
Tue, 17 Dec 2013 22:35:07 +0000 (22:35 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 17 Dec 2013 22:35:07 +0000 (22:35 +0000)
raw_ostream.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197531 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DiagnosticPrinter.cpp

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