diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-02 04:12:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-02 04:12:28 +0000 |
commit | 2b800dfa6b6e6b49ee5019708a47459eaef8389f (patch) | |
tree | b23e08819ca3f830dee858f0e3618d6bfe5f0efb /lib/Support/Twine.cpp | |
parent | 5e62147e0756b6c0387e39c905552e1e03149824 (diff) |
Add missing flush().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Twine.cpp')
-rw-r--r-- | lib/Support/Twine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Twine.cpp b/lib/Support/Twine.cpp index 8b8c0f0db8..611af8c5ae 100644 --- a/lib/Support/Twine.cpp +++ b/lib/Support/Twine.cpp @@ -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; } |