raw_ostream_test: Add a missing buffer flush

This commit is contained in:
Benjamin Kramer 2020-04-26 15:18:25 +02:00
parent 6d7637dc46
commit 3e14b95d99
1 changed files with 5 additions and 3 deletions

View File

@ -18,9 +18,11 @@ namespace {
template<typename T> std::string printToString(const T &Value) {
std::string res;
llvm::raw_string_ostream OS(res);
OS.SetBuffered();
OS << Value;
{
llvm::raw_string_ostream OS(res);
OS.SetBuffered();
OS << Value;
}
return res;
}