summaryrefslogtreecommitdiff
path: root/lib/IR
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
commit51037451f9d00c1a44128c54fe30e8acafc7bd4a (patch)
tree7d3481299938aebe70d8a80ba5bbe745750ac1d2 /lib/IR
parent65c43291817ad9b28e259919e19d340f67d8fb6d (diff)
downloadllvm-51037451f9d00c1a44128c54fe30e8acafc7bd4a.tar.gz
llvm-51037451f9d00c1a44128c54fe30e8acafc7bd4a.tar.bz2
llvm-51037451f9d00c1a44128c54fe30e8acafc7bd4a.tar.xz
[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
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/DiagnosticPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/DiagnosticPrinter.cpp b/lib/IR/DiagnosticPrinter.cpp
index 04cd6c7e6f..d76f9f586a 100644
--- a/lib/IR/DiagnosticPrinter.cpp
+++ b/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;
}