Skip to content

Commit

Permalink
[DiagnosticPrinter] Use the appropriate method to print a Twine objec…
Browse files Browse the repository at this point in the history
…t in a

raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197531 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Quentin Colombet committed Dec 17, 2013
1 parent 65c4329 commit 5103745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IR/DiagnosticPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(double N) {
}

DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Twine &Str) {
Stream << Str.getSingleStringRef();
Str.print(Stream);
return *this;
}

Expand Down

0 comments on commit 5103745

Please sign in to comment.