Add missing flush().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-08-02 04:12:28 +00:00
parent 5e62147e07
commit 2b800dfa6b

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