From 2eaf396c41527a343ddab3b681b0920f51f6d5f4 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 2 Aug 2009 04:12:28 +0000 Subject: Add missing flush(). llvm-svn: 77859 --- llvm/lib/Support/Twine.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Support/Twine.cpp') 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; } -- cgit v1.2.3