summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Twine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Twine.cpp')
-rw-r--r--llvm/lib/Support/Twine.cpp3
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;
}
OpenPOWER on IntegriCloud