[llvm-commits] [llvm] r77859 - /llvm/trunk/lib/Support/Twine.cpp
Daniel Dunbar
daniel at zuster.org
Sat Aug 1 21:12:28 PDT 2009
Author: ddunbar
Date: Sat Aug 1 23:12:28 2009
New Revision: 77859
URL: http://llvm.org/viewvc/llvm-project?rev=77859&view=rev
Log:
Add missing flush().
Modified:
llvm/trunk/lib/Support/Twine.cpp
Modified: llvm/trunk/lib/Support/Twine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Twine.cpp?rev=77859&r1=77858&r2=77859&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Twine.cpp (original)
+++ llvm/trunk/lib/Support/Twine.cpp Sat Aug 1 23:12:28 2009
@@ -12,9 +12,12 @@
using namespace llvm;
std::string Twine::str() const {
+ // FIXME: This should probably use the toVector implementation, once that is
+ // efficient.
std::string Res;
raw_string_ostream OS(Res);
print(OS);
+ OS.flush();
return Res;
}
More information about the llvm-commits
mailing list