mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
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:
parent
5e62147e07
commit
2b800dfa6b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user