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 | 2eaf396c41527a343ddab3b681b0920f51f6d5f4 (patch) | |
| tree | eac4382bafad24a6995900d9f5447e4e26251c4f /llvm/lib | |
| parent | f526fb7e9a5d706f62e993f4b98698c9f6422f22 (diff) | |
| download | bcm5719-llvm-2eaf396c41527a343ddab3b681b0920f51f6d5f4.tar.gz bcm5719-llvm-2eaf396c41527a343ddab3b681b0920f51f6d5f4.zip  | |
Add missing flush().
llvm-svn: 77859
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Support/Twine.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Twine.cpp b/llvm/lib/Support/Twine.cpp index 8b8c0f0db80..611af8c5ae0 100644 --- a/llvm/lib/Support/Twine.cpp +++ b/llvm/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;  }  | 

