Add missing flush().

llvm-svn: 77859
This commit is contained in:
Daniel Dunbar 2009-08-02 04:12:28 +00:00
parent f526fb7e9a
commit 2eaf396c41
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}