diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-12-17 22:35:07 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-12-17 22:35:07 +0000 |
commit | 98e79a06048d877169b5a0587df0ff6473aa4e8d (patch) | |
tree | e02d732e6102d064a800f2c4a32e15873ed49b89 | |
parent | e8bc31f0ab734ebc4a06662d3fb5db25ebce3e90 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |