summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2013-12-17 22:35:07 +0000
committerQuentin Colombet <qcolombet@apple.com>2013-12-17 22:35:07 +0000
commit98e79a06048d877169b5a0587df0ff6473aa4e8d (patch)
treee02d732e6102d064a800f2c4a32e15873ed49b89
parente8bc31f0ab734ebc4a06662d3fb5db25ebce3e90 (diff)
downloadbcm5719-llvm-98e79a06048d877169b5a0587df0ff6473aa4e8d.tar.gz
bcm5719-llvm-98e79a06048d877169b5a0587df0ff6473aa4e8d.zip
[DiagnosticPrinter] Use the appropriate method to print a Twine object in a
raw_ostream. llvm-svn: 197531
-rw-r--r--llvm/lib/IR/DiagnosticPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DiagnosticPrinter.cpp b/llvm/lib/IR/DiagnosticPrinter.cpp
index 04cd6c7e6f7..d76f9f586a9 100644
--- a/llvm/lib/IR/DiagnosticPrinter.cpp
+++ b/llvm/lib/IR/DiagnosticPrinter.cpp
@@ -90,7 +90,7 @@ DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(double N) {
}
DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Twine &Str) {
- Stream << Str.getSingleStringRef();
+ Str.print(Stream);
return *this;
}
OpenPOWER on IntegriCloud